A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Excel » General Discussion
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

generalized macros



 
 
Thread Tools Display Modes
  #1  
Old June 15th, 2004, 03:40 PM
vishu
external usenet poster
 
Posts: n/a
Default generalized macros

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
  #2  
Old June 15th, 2004, 04:27 PM
Gord Dibben
external usenet poster
 
Posts: n/a
Default generalized macros

Vishu

Open a new workbook. Customize as you wish. FileSave 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 FileNewWorkbook.

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 InsertSheet.

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 ToolsMacro 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

On 15 Jun 2004 07:40:36 -0700, (vishu) wrote:

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


 




Thread Tools
Display Modes

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

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


All times are GMT +1. The time now is 03:45 PM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.