VB Code - easy if you know how!

LeeHitchen

New Member
Joined
Mar 20, 2002
Messages
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
 

Excel Facts

Which lookup functions find a value equal or greater than the lookup value?
MATCH uses -1 to find larger value (lookup table must be sorted ZA). XLOOKUP uses 1 to find values greater and does not need to be sorted.
This should start it when the workbook is opened. Hope it helps Dan

Private Sub Workbook_Open()
""VBA Code Here""
End Sub
 
Upvote 0
On 2002-04-18 11:01, LeeHitchen wrote:
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
Lee,
Look at this:
http://www.mrexcel.com/board/viewtopic.php?topic=5542&forum=2&4
Especially Mark O'Brien's answer
Eli
 
Upvote 0

Forum statistics

Threads
1,214,819
Messages
6,121,737
Members
449,050
Latest member
excelknuckles

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top