Solved

How do you lock column width so imported csv file doesn't auto resize the columns

Posted on 2011-03-16
6
586 Views
Last Modified: 2012-05-11
I have a spreadsheet that we import data into. The sheet is a template with a header row and some calculations. Every time we import, the column widths are changed. I have tried several suggestions found in various places but none of them seem to work. I need to be able to add data to the sheet. A protected sheet stops this. What do I need to do to keep my header row like it is and still be able to IMPORT data?
0
Comment
Question by:jbcbussoft
  • 3
  • 3
6 Comments
 
LVL 81

Expert Comment

by:zorvek (Kevin Jones)
Comment Utility
If you are doing the import now with VBA then what I suggest is importing into a new worksheet and copying the data from that worksheet to your main worksheet. This way you can maintain control over what is changed in your main worksheet.

Kevin
0
 

Author Comment

by:jbcbussoft
Comment Utility
I'm importing a csv file. As far as I know I  am not using Visual Basic.
0
 
LVL 81

Expert Comment

by:zorvek (Kevin Jones)
Comment Utility
If you don't know if you are using VBA then you probably are not.

Would a VBA solution be acceptable?

How are you importing the data now?

Kevin
0
Free Trending Threat Insights Every Day

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

 

Author Comment

by:jbcbussoft
Comment Utility
We are using "Get External Data  From Text"
0
 
LVL 81

Accepted Solution

by:
zorvek (Kevin Jones) earned 250 total points
Comment Utility
When on the last panel of the import wizard click the "Properties" button and then uncheck "Adjust column width".

Kevin
0
 

Author Comment

by:jbcbussoft
Comment Utility
That does the trick. Thanks for your help. You get the gold star and my appreciation.
0

Featured Post

Free Trending Threat Insights Every Day

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

Join & Write a Comment

Suggested Solutions

This article will guide you to convert a grid from a picture into Excel format using Microsoft OneNote and no other 3rd party application.
This code takes an Excel list of URL’s and adds a header titled “URL List”. It then searches through all URL’s in column “A”, looking for duplicates. When a duplicate is found, it is moved to the top of the list. The duplicate URL’s are then highlig…
The viewer will learn how to use a discrete random variable to simulate the return on an investment over a period of years, create a Monte Carlo simulation using the discrete random variable, and create a graph to represent the possible returns over…
This Micro Tutorial demonstrates in Microsoft Excel how to consolidate your marketing data by creating an interactive charts using form controls. This creates cool drop-downs for viewers of your chart to choose from.

728 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

10 Experts available now in Live!

Get 1:1 Help Now