"Can't Enter Break Mode"?

G

Guest

The following code is supposed to copy a text box and then paste it in
another sheet.

Sub Macro9()
Sheets("Prod. Res.").Select
ActiveSheet.Shapes("ScrollingTextBox").Select
Selection.Copy
Sheets("Summ").Select
Range("A152").Select
ActiveSheet.Paste
Range("B159").Select
End Sub

This code was made using the record macro function. However, after
recording, it won't run it. When stepping through it, excel says, "Can't
enter break mode at this time." when it tries to do the "ActiveSheet.Paste"
step. (It actually does paste it, but then faults.)

Anybody have any ideas? Thank you!
 
D

Dave Peterson

I've found that when that happens, that I can run the macro (not step) and it
works fine.

Or I set a break point before the offending line and after the offending line
and run that offending line without stepping through it.
 
G

Guest

Thanks Dave. I could have sworn it didn't work and I that is why I was
stepping through it. Oh well, it works now.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top