Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.programming
|
|||
|
|||
run vba automatically
I am new to vba programming with excel though I have used visual basic. I
was wondering, can I design a form based project and have it execute automatically when the spread sheet is opened or do you always have to go to tools-macros-visual basic editor and then press the run button on the tool bar. Roger |
#2
Posted to microsoft.public.excel.programming
|
|||
|
|||
run vba automatically
The Auto_Open fires when you start up
Sub Auto_Open() FormName.show End sub "R.H." wrote in message ... I am new to vba programming with excel though I have used visual basic. I was wondering, can I design a form based project and have it execute automatically when the spread sheet is opened or do you always have to go to tools-macros-visual basic editor and then press the run button on the tool bar. Roger |
#3
Posted to microsoft.public.excel.programming
|
|||
|
|||
run vba automatically
Thanks.
Roger David Adamson wrote: The Auto_Open fires when you start up Sub Auto_Open() FormName.show End sub "R.H." wrote in message ... I am new to vba programming with excel though I have used visual basic. I was wondering, can I design a form based project and have it execute automatically when the spread sheet is opened or do you always have to go to tools-macros-visual basic editor and then press the run button on the tool bar. Roger |
#4
Posted to microsoft.public.excel.programming
|
|||
|
|||
run vba automatically
Thanks, but I added the subroutine as you suggested, but it does not run
automatically when I open the excel workbook. I still have to go to tools, then macros, then visual basic editor and press the run button. Roger David Adamson wrote: The Auto_Open fires when you start up Sub Auto_Open() FormName.show End sub "R.H." wrote in message ... I am new to vba programming with excel though I have used visual basic. I was wondering, can I design a form based project and have it execute automatically when the spread sheet is opened or do you always have to go to tools-macros-visual basic editor and then press the run button on the tool bar. Roger |
#5
Posted to microsoft.public.excel.programming
|
|||
|
|||
run vba automatically
This sub needs to be in the ThisWorkbook code page.
Private Sub Workbook_Open() 'Put code to execute when the workbook is opened, here. End Sub The user still needs to click on the "Enable Macros" button when they are prompted during the file opening (provided they have low or medium security setting). Troy "R.H." wrote in message ... Thanks, but I added the subroutine as you suggested, but it does not run automatically when I open the excel workbook. I still have to go to tools, then macros, then visual basic editor and press the run button. Roger David Adamson wrote: The Auto_Open fires when you start up Sub Auto_Open() FormName.show End sub "R.H." wrote in message ... I am new to vba programming with excel though I have used visual basic. I was wondering, can I design a form based project and have it execute automatically when the spread sheet is opened or do you always have to go to tools-macros-visual basic editor and then press the run button on the tool bar. Roger |
#6
Posted to microsoft.public.excel.programming
|
|||
|
|||
run vba automatically
I meant to say...
The user still needs to click on the "Enable Macros" button when they are prompted during the file opening (provided they have medium security setting). Troy "TroyW" wrote in message ... This sub needs to be in the ThisWorkbook code page. Private Sub Workbook_Open() 'Put code to execute when the workbook is opened, here. End Sub The user still needs to click on the "Enable Macros" button when they are prompted during the file opening (provided they have low or medium security setting). Troy "R.H." wrote in message ... Thanks, but I added the subroutine as you suggested, but it does not run automatically when I open the excel workbook. I still have to go to tools, then macros, then visual basic editor and press the run button. Roger David Adamson wrote: The Auto_Open fires when you start up Sub Auto_Open() FormName.show End sub "R.H." wrote in message ... I am new to vba programming with excel though I have used visual basic. I was wondering, can I design a form based project and have it execute automatically when the spread sheet is opened or do you always have to go to tools-macros-visual basic editor and then press the run button on the tool bar. Roger |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
Automatically add one row | Excel Discussion (Misc queries) | |||
Automatically insert time in excel but not automatically updated | Excel Worksheet Functions | |||
St automatically changes to So | Excel Discussion (Misc queries) | |||
Automatically add new row | Excel Programming | |||
Automatically add a new row | Excel Programming |