jasonb75
Well-known Member
- Joined
- Dec 30, 2008
- Messages
- 15,509
- Office Version
- 365
- Platform
- Windows
Not sure if my title is misleading but didn't know how to refer to this problem.
I need to hold a variable (a) in a macro,
this needs the value of a = 0 when the workbook is opened
but needs to be changed to a=1 after the first run of the macro and retain this value for as long as the workbook remains open.
I'm guessing I'm going to feel rather stupid when someone gives me an answer that should have been obvious.
Thanks in advance.
I need to hold a variable (a) in a macro,
this needs the value of a = 0 when the workbook is opened
but needs to be changed to a=1 after the first run of the macro and retain this value for as long as the workbook remains open.
I'm guessing I'm going to feel rather stupid when someone gives me an answer that should have been obvious.
Thanks in advance.