PC Review


Reply
Thread Tools Rate Thread

Default column width opeing *.csv in Excel

 
 
Netnathan
Guest
Posts: n/a
 
      4th Dec 2006
How do you set default column width when opening a *.csv in Excel?
Changing files in \XlStart directory did not help.

-nn


 
Reply With Quote
 
 
 
 
Nick Hodge
Guest
Posts: n/a
 
      4th Dec 2006
As it is a csv you will only be able to do this in code. If it is the same
file layout each time, why not record a macro in your personal.xls file and
run this each time

--
HTH
Nick Hodge
Microsoft MVP - Excel
Southampton, England
(E-Mail Removed)DTHIS
www.nickhodge.co.uk


"Netnathan" <(E-Mail Removed)> wrote in message
news:%(E-Mail Removed)...
> How do you set default column width when opening a *.csv in Excel?
> Changing files in \XlStart directory did not help.
>
> -nn
>


 
Reply With Quote
 
Netnathan
Guest
Posts: n/a
 
      4th Dec 2006
Where would I store this personal.xls file so it will be accessed when I
double click on the *.csv.

-nn

"Nick Hodge" <(E-Mail Removed)> wrote in message
news:CF2E13A1-C699-421B-9A15-(E-Mail Removed)...
> As it is a csv you will only be able to do this in code. If it is the
> same file layout each time, why not record a macro in your personal.xls
> file and run this each time
>
> --
> HTH
> Nick Hodge
> Microsoft MVP - Excel
> Southampton, England
> (E-Mail Removed)DTHIS
> www.nickhodge.co.uk
>
>
> "Netnathan" <(E-Mail Removed)> wrote in message
> news:%(E-Mail Removed)...
>> How do you set default column width when opening a *.csv in Excel?
>> Changing files in \XlStart directory did not help.
>>
>> -nn
>>

>



 
Reply With Quote
 
Nick Hodge
Guest
Posts: n/a
 
      4th Dec 2006
When you record a macro, you get options to store the code in 'This
workbook' or personal.xls. The latter is stored, as a hidden workbook in
xlStart, but as it opens each time Excel does (hidden), then the code in it
is available all the time.

To record the code, open the csv first then start the macro recorder
(tools>macros.record new) and select personal workbook. Make the formatting
changes and close. When asked if you want to save personal.xls say yes and
now each time you want to run it, open the csv and select Tolls>Macros>run
macros and select it from the list and the formatting you did when recording
will be repeated

--
HTH
Nick Hodge
Microsoft MVP - Excel
Southampton, England
(E-Mail Removed)DTHIS
www.nickhodge.co.uk


"Netnathan" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> Where would I store this personal.xls file so it will be accessed when I
> double click on the *.csv.
>
> -nn
>
> "Nick Hodge" <(E-Mail Removed)> wrote in message
> news:CF2E13A1-C699-421B-9A15-(E-Mail Removed)...
>> As it is a csv you will only be able to do this in code. If it is the
>> same file layout each time, why not record a macro in your personal.xls
>> file and run this each time
>>
>> --
>> HTH
>> Nick Hodge
>> Microsoft MVP - Excel
>> Southampton, England
>> (E-Mail Removed)DTHIS
>> www.nickhodge.co.uk
>>
>>
>> "Netnathan" <(E-Mail Removed)> wrote in message
>> news:%(E-Mail Removed)...
>>> How do you set default column width when opening a *.csv in Excel?
>>> Changing files in \XlStart directory did not help.
>>>
>>> -nn
>>>

>>

>
>


 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Excel 2007 default column width different to 2003 brammer Microsoft Excel Setup 1 31st Jul 2008 01:18 AM
Re: Default column width in Excel Gord Dibben Microsoft Excel Misc 0 29th Apr 2004 10:47 PM
Re: Default column width in Excel Frank Kabel Microsoft Excel Misc 0 29th Apr 2004 10:14 PM
Help!!..Access to Excel export-modify Excel column default width Gary S Microsoft Access External Data 0 22nd Sep 2003 06:58 PM
MS Excel Default Column Width Gary S Microsoft Excel Misc 2 2nd Sep 2003 11:57 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 03:56 AM.