I have a situation with VBA in Excel that if it were in Access I would use the command line decompile switch to clear out any compiled vba code and start over. Is there any equivalent?
I'm writing that code from memory in this post, forgive any syntax issues it is for illustration purposes only.
The issue I am experiencing is that I have a range selected on a worksheet...
Then I try to delete the top two rows of that range with something like...
This seems to be failing...
when I select Myrange in break mode, it seems to be right but when I do something like
It looks like I ran something more like...
So any thoughts on decompile or root cause welcome... This is a Macro that has been running successfully for quite some time.
I'm writing that code from memory in this post, forgive any syntax issues it is for illustration purposes only.
The issue I am experiencing is that I have a range selected on a worksheet...
Then I try to delete the top two rows of that range with something like...
Code:
Range(MyRange.cells(1,1), MyRange.cells(3,1)).entirerow.delete
This seems to be failing...
when I select Myrange in break mode, it seems to be right but when I do something like
Code:
Range(MyRange.cells(1,1), MyRange.cells(3,1)).select
It looks like I ran something more like...
Code:
Range(MyRange.cells(14,1), MyRange.cells(15,1)).select
So any thoughts on decompile or root cause welcome... This is a Macro that has been running successfully for quite some time.