![]() |
![]() |
|
|||||||
| Excel Questions All Excel/VBA questions - formulas, macros, pivot tables, general help, etc. Please post to this forum in English only. |
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
New Member
Join Date: Mar 2002
Location: England
Posts: 26
|
Can anyone pse tell me where to place VB code to ensure it is actioned whenever I open the spreadsheet (ie condition is active all the time)as opposed to placing the VB within a macro environment and having to run it each time I open said sheet.
Many thanks Lee |
|
|
|
|
|
#2 |
|
Board Regular
Join Date: Mar 2002
Location: Arkansas
Posts: 358
|
This should start it when the workbook is opened. Hope it helps Dan
Private Sub Workbook_Open() ""VBA Code Here"" End Sub |
|
|
|
|
|
#3 |
|
New Member
Join Date: Mar 2002
Location: England
Posts: 26
|
Just the ticket, many thanks dantb
|
|
|
|
|
|
#4 |
|
Board Regular
Join Date: Mar 2002
Location: Arkansas
Posts: 358
|
Anytime, Learning myself good luck !
|
|
|
|
|
|
#5 | |
|
Board Regular
Join Date: Mar 2002
Posts: 1,805
|
Quote:
Look at this: http://www.mrexcel.com/board/viewtop...5542&forum=2&4 Especially Mark O'Brien's answer Eli |
|
|
|
|
|
|
#6 |
|
New Member
Join Date: Mar 2002
Location: England
Posts: 26
|
Thanks Eli, it's all starting to make sense at long last!
Regards Lee |
|
|
|
![]() |
| Bookmarks |
| Thread Tools | |
| Display Modes | |
|
|