I have a macro which crashes with the error statement “Application Defined or Object Defined” error '1004" after a simple Range("A2").Select statement.
In desperation I tried:
With Sheets("MT 2010")
.Range("A2").Select
End With
with the same result.
I've tried putting that section of the code in it's own macro and it works just fine. It seems that there is nothing I can do within this particular macro to select a cell in this worksheet. I have several other places in the macro where I use the code, but it won't do it in this particular location. I even tried making it the first statements in the macro and it crashed, yet it works fine in its own macro. I've wasted a ton of time with this and am now contemplating becoming an alcoholic. What's the deal?
In desperation I tried:
With Sheets("MT 2010")
.Range("A2").Select
End With
with the same result.
I've tried putting that section of the code in it's own macro and it works just fine. It seems that there is nothing I can do within this particular macro to select a cell in this worksheet. I have several other places in the macro where I use the code, but it won't do it in this particular location. I even tried making it the first statements in the macro and it crashed, yet it works fine in its own macro. I've wasted a ton of time with this and am now contemplating becoming an alcoholic. What's the deal?