generalized macros

V

vishu

i tried to write a macro for changingthe way the columns are placed on
the excel sheet,but i am not able to make it generalized for every
sheet is use . Can aanyone suggest me what to do ? Can i create a
single sheet to store my formatted spreadsheet all the time? i am new
to writing macros and hence this silly question.......please help me
.....
thank you
 
G

Gord Dibben

Vishu

Open a new workbook. Customize as you wish. File>Save As Type: scroll down
to Excel Template(*.XLT) and select. Name your workbook "BOOK"(no quotes).
Excel will add the .XLT to save as BOOK.XLT.

Store this workbook in the XLSTART folder usually located at........

C:\Documents and Settings\username\Application Data\Microsoft\Excel\XLSTART

This will be the default workbook for File>New>Workbook.

You can also open a new workbook and delete all but one sheet. Customize as
you wish then save this as SHEET.XLT in XLSTART folder also. It now becomes
the default Insert>Sheet.

More can be found on this in Help under "templates"(no quotes).

On the question of macro storage......If you want a macro to be available for
all open workbooks, place it in your Personal Macro Workbook(Personal.xls)

If you don't have one, go to Tools>Macro and "record new macro". From the
drop-down select "store in" Personal Macro Workbook. Record something trivial
then Stop recording.

You now have a Personal.xls. You can save it as "hidden". It will open
hidden each time you start Excel.

Gord Dibben Excel MVP
 
Top