Using Paste command

M

Marty

Hi- I need to capture a number from a screen. When the
PRINT button is selected, the number is copied to the
clipboard. Now I need to paste that number into my VBA
macro code.

I see Paste Method and PasteOK Property commands, but am
at a loss as how to use them.

How can I store the number on the clipboard in my VBA
code?

Thanks for any and all help,

Marty
 
J

Jonathan West

Marty said:
Hi- I need to capture a number from a screen. When the
PRINT button is selected, the number is copied to the
clipboard. Now I need to paste that number into my VBA
macro code.

I see Paste Method and PasteOK Property commands, but am
at a loss as how to use them.

How can I store the number on the clipboard in my VBA
code?

Thanks for any and all help,


Hi Marty

This article shows you how to get text on and off the clipboard.

Manipulating the clipboard using VBA
http://word.mvps.org/FAQs/MacrosVBA/ManipulateClipboard.htm
 

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