Help with Envelope Macro

M

mcp6453

This macro takes text that has been copied to the
clipboard and pastes it as unformatted text to the
address portion of a business envelope.

Documents.Add Template:= _
"C:\Documents and
Settings\Administrator\Application
Data\Microsoft\Templates\Envelope.dot" _
, NewTemplate:=False, DocumentType:=0
Selection.PasteSpecial Link:=False,
DataType:=wdPasteText, Placement:= _
wdInLine, DisplayAsIcon:=False

What I would like to add is a test that if there is no
text on the clipboard, the macro does not do a paste.
There may not be a solution unless there is a way to tell
the macro that the text in the clipboard is actually the
address for the letter.

Any suggestions for achieving this objective would be
appreciated.
 

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