Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 76
Default Changing a menu button in my XL template

Hi, all,

I would prefer if the "Comma Style" button were set up differently for me
EVERY time I use Excel 2007.

By recording a macro, and going to Home Styles Cell Styles Number
Format (right-click on) Comma Modify, then changing the format how I want
it, the following code was produced:
With ActiveWorkbook.Styles("Comma")
.IncludeNumber = True
.IncludeFont = False
.IncludeAlignment = False
.IncludeBorder = False
.IncludePatterns = False
.IncludeProtection = False
End With
ActiveWorkbook.Styles("Comma").NumberFormat = "#,##0"

Is there a way to have this code run every time I open Excel?

I have already attempted this, and there are 2 files in my XLSTART folder:
Book.xlsx
Book.xltx
I assume I will have to save a file to my XLSTART folder - but which format
should I use? and should I get rid of either of the two files which are
currently in there?
--
TIA, Brad E.
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Undo button in the context menu (right click menu) Madiya Excel Programming 7 April 7th 08 04:33 PM
How would I remove a drop down menu from an excel template? Sharon R Excel Discussion (Misc queries) 1 March 30th 07 08:27 PM
custom menu not showing in template file hellZg8 Excel Programming 4 April 19th 06 08:38 AM
Changing a template in excel Drexxyl Excel Discussion (Misc queries) 5 March 16th 06 06:11 PM
Create floating button based on button click in menu ExcelMonkey Excel Programming 2 October 12th 05 06:43 PM


All times are GMT +1. The time now is 11:52 PM.

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

About Us

"It's about Microsoft Excel"