Hi all,
I had some code that would manipulate cell values on different sheets. I am not sure what happened but it recently stopped running the code to change a cell's value if that worksheet isn't active.
Instead I get an application-defined or object-defined error.
I would even write out the full address of the code, for example
Unless the sheet is active, I get an error. It used to work fine, so I am not sure what happened. Any ideas?
I had some code that would manipulate cell values on different sheets. I am not sure what happened but it recently stopped running the code to change a cell's value if that worksheet isn't active.
Instead I get an application-defined or object-defined error.
I would even write out the full address of the code, for example
Code:
Sub Demo()
Sheets("Input").Range("A1")= "Test"
Sheets("Formulas").Range("b12")= "Test2"
End Sub
Unless the sheet is active, I get an error. It used to work fine, so I am not sure what happened. Any ideas?