I created a Module an placed into it, Public sheetJobRequestActive As Boolean In sheet1…
Jump to turn (7)
- 1I created a Module an placed into it, Public sheetJobRequestActive As Boolean In
- 2yes the sheet is deactivating but it does not seem to be setting sheetJobRequest
- 3when you say Make sure that your module variable is declared at the top of your
- 4I created a seperate module9 for Public sheetJobRequestActive As Boolean and it
- 5I am definitely sure that this statement is not working Module9.sheetJobRequestA
- 6in the intermediate window it displays the following statement; sheetJobRequestA
- 7For some reason, this solution is not working for me. Is there another solution
- User
I created a Module an placed into it, Public sheetJobRequestActive As Boolean
In sheet1 where it activates sheet2, just before the acctivation request for sheet2 I placed the staement, sheetJobRequestActive = True
In my sheet2 where I want to control a vba code, I palced the staement at the start, If Not sheetJobRequestActive Then Exit Sub
To deactivate it, in sheet2 I palaced the staement sheetJobRequestActive = False into the routine Private Sub Worksheet_Deactivate()
The vba in my sheet2 does not run as is expected, but it is not returning it back to false when deactivated sheetJobRequestActive = False
- Assistant