Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hello - I want this simple macro to automatically run everytime my document
is opened, but I'm not sure how to do that. Can you help? Thanks. Activesheet.Protect |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Create a new macro in a general module. Name it auto_open:
Option Explicit Sub Auto_Open() activesheet.protect End Sub If you're new to macros: Debra Dalgleish has some notes how to implement macros he http://www.contextures.com/xlvba01.html David McRitchie has an intro to macros: http://www.mvps.org/dmcritchie/excel/getstarted.htm Ron de Bruin's intro to macros: http://www.rondebruin.nl/code.htm (General, Regular and Standard modules all describe the same thing.) Munchkin wrote: Hello - I want this simple macro to automatically run everytime my document is opened, but I'm not sure how to do that. Can you help? Thanks. Activesheet.Protect -- Dave Peterson |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Run macro automatically upon opening or closing document | Excel Programming | |||
Opening a Word Document using an Excel (2000) Macro? | Excel Discussion (Misc queries) | |||
Opening an already existant Word document with an Excel Macro | Excel Programming | |||
Start Excel Macro upon opening of document | Excel Programming | |||
Two copies of same document appear when opening a document | Excel Discussion (Misc queries) |