autostart macro???

VHFlores

New Member
Joined
Apr 17, 2002
Messages
1
how do i make an autostart macro, so that every time excel opens, the macro runs before anything else happens?
My real problem is that i dont like the default formatting for the columns. i just want to make all columns text!
row 1 '006' (excel thinks its a 6...BAD)
row 2 '201' (excel thinks its a 201...good)
row 3 '0GZ' (excel thinks its 0GZ...good)

if i then format the column as text, i can never turn the 006 in row 1 into a 006
This may be because i'm reading a file. A CSV file. The csv file has "006" , yet i cant
get it to show 006.

if excel opened/set all columns (well, a reasonable number) to text.../then show the data on the spreadsheet...everything would be cool
 

Excel Facts

Links? Where??
If Excel says you have links but you can't find them, go to Formulas, Name Manager. Look for old links to dead workbooks & delete.
Do a search on this site for auto start macros. You can put the code in the Workbook_Open event of the specific workbook, or save it to your personal.xls in the Workbook_Open or some other event and have it triggered everytime another workbook is opened, or you can save it as an add-in so it is loaded everytime excel is opened. You have many options here.
 
Upvote 0
Make all the changes you want in a blank workbook. Then save the file twice.

First as "sheet.xls" - this sheet will open every time you start Excel.

Save it a second time in your xlstart directory as a template named "Book.xlt". This will then open whenever you want to open a new worksheet.

Good luck.
 
Upvote 0

Forum statistics

Threads
1,214,543
Messages
6,120,123
Members
448,947
Latest member
test111

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top