Morning,
I'm getting a Variable Not Defined error and would be grateful of some help, or to be pointed in the right direction please.
in my workbook_open I have the following code
in one of my sheets worksheet_change I have
when I get to this I get the Variable not defined error. I am using this to bypass some code that does not always need to be run (it slows the workbook down). So I also have another piece of code that toggles workround from 0 to 1.
I have a feeling this error has something to do with Option Explicit. But My limited understanding is obviously insufficient to know what is happening or how to fix it. As I believe that I have defined the variable within the workbook_open code.
Can anybody help me with this please??
I'm getting a Variable Not Defined error and would be grateful of some help, or to be pointed in the right direction please.
in my workbook_open I have the following code
Code:
Dim workround As Integer
workround = 0
in one of my sheets worksheet_change I have
Code:
If workround = 0 then
when I get to this I get the Variable not defined error. I am using this to bypass some code that does not always need to be run (it slows the workbook down). So I also have another piece of code that toggles workround from 0 to 1.
I have a feeling this error has something to do with Option Explicit. But My limited understanding is obviously insufficient to know what is happening or how to fix it. As I believe that I have defined the variable within the workbook_open code.
Can anybody help me with this please??