LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2
Default Auto New macros?

Excel Help says "Automatic macros, such as Auto_Open, are
designed to run when you start Excel. For more information
about these macros, see Microsoft Visual Basic Help."

When I look in VB Help, however, I can't find any
reference to automatic macros.

What I need is the code for a macro to run automatically
whenever a user creates a new workbook based on my
template. The template is protected so the user can only
enter data in specific cells.

I presently have the following macro:

Sub Auto_New()

With ActiveWindow
.DisplayHeadings = False
.DisplayHorizontalScrollBar = False
.DisplayVerticalScrollBar = False
.DisplayWorkbookTabs = False
End With
End Sub

The macro will not run unless you specifically select
Tools, Macro, Run... etc., which obviously defeats the
point!

Can someone give me a really quick response?

Cheers,
Christine
 
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
Auto open macros in Excel Tammy[_4_] Excel Programming 1 February 21st 04 02:30 AM
creating macros to auto fill cells dev[_4_] Excel Programming 4 February 9th 04 12:55 PM
Auto run macros when opening CSV files [email protected] Excel Programming 1 September 27th 03 02:38 AM
Auto load macros ksgoodwin Excel Programming 1 September 9th 03 05:35 AM


All times are GMT +1. The time now is 11:54 AM.

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"