Any way to copy/paste from Msgbox ?

D

David

Is there any way to copy and paste the contents of a
MSGBOX?
I'm debugging a system and I have a long SQL that I build
in VBA. I displayed it in a MSGBOX. Now I need to copy it
to a query and see if it runs. But how?
 
R

Rick Brandt

David said:
Is there any way to copy and paste the contents of a
MSGBOX?
I'm debugging a system and I have a long SQL that I build
in VBA. I displayed it in a MSGBOX. Now I need to copy it
to a query and see if it runs. But how?

Instead of displaying it in a MsgBox use Debug.print to send it to the
debug window. Then you can copy n' paste from there.
 

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