StructEng1
New Member
- Joined
- Apr 4, 2023
- Messages
- 36
- Office Version
- 365
- Platform
- Windows
Hello,
I wrote a vba code where if certain cells changes in value that excel will then run an existing macro. However, I keep getting an "Code execution has been interrupted" error almost 80% of the time that it runs. When I hit debug and press continue, everything works normally so I know there is nothing wrong with my code. Can someone please help me with this issue? I also wrote many different versions of this code and I get the same error all of which points to Worksheet_Change(ByVal Target As Range) yet runs fine when you hit continue.
I even tried the phantom breakpoint method where you press ctrl pausebreak twice but it does not work.
I wrote a vba code where if certain cells changes in value that excel will then run an existing macro. However, I keep getting an "Code execution has been interrupted" error almost 80% of the time that it runs. When I hit debug and press continue, everything works normally so I know there is nothing wrong with my code. Can someone please help me with this issue? I also wrote many different versions of this code and I get the same error all of which points to Worksheet_Change(ByVal Target As Range) yet runs fine when you hit continue.
I even tried the phantom breakpoint method where you press ctrl pausebreak twice but it does not work.