I am trying to run my batch module and it says “Variable not defined”. I do not understand why if I haven’t edited the document or the formatting of the sub
Variable not defined means that you are trying to use a variable which may be incorrectly declared as a variable. It could be a typo where you are trying to use the variable “Dim iRow as integer” but you might have called it “irow” (No capital R) which matters to VBA. Just make sure that you are referencing a variable with the correct spelling and everything.