Paste Special dialog

S

Shaun

I do a lot of pasting graphics into documents from Corel
and Adobe. If you just paste as a Corel or adobe object,
it creates this annoying edit link with the program. To
bypass that I have to click on edit / paste special to get
a dialog box prompting me to pick from a list of objects.
I would like to create a macro that brings up the "Paste
Special" dialog so I can assign it to the right-click menu
and keyboard shortcuts but can't find the name of the
dialog box. Does anyone know it or know how to achieve my
goal?

Thanks,
Shaun
 
K

Kemosabe

I do a lot of pasting graphics into documents from Corel
and Adobe. If you just paste as a Corel or adobe object,
it creates this annoying edit link with the program. To
bypass that I have to click on edit / paste special to get
a dialog box prompting me to pick from a list of objects.
I would like to create a macro that brings up the "Paste
Special" dialog so I can assign it to the right-click menu
and keyboard shortcuts but can't find the name of the
dialog box. Does anyone know it or know how to achieve my
goal?

Thanks,
Shaun

On the menu bar, select Tools|Macro|Macros...

In the resulting Macros dialog, in the "Macros in:" combobox, select
"Word Commands"

Select EditPaste from the list of Word Commands

Now, in the "Macros in:" combobox, select "Normal.dot"

Click the "Create" button

You should now be in the Visual Basic Editor (VBE), with the EditPaste
macro in the Normal.dot template ready for editing. If this macro
exists, it will be run instead of the EditPaste Word Command (this is
true of any macro with the same name as a Word Command). Edit this
macro to do what you would like.

If you repeat this procedure, this time inserting the EditPasteSpecial
Word Command as a macro, you can then copy its contents into the
EditPaste macro. Then delete the EditPasteSpecial macro (you don't
need it any more).

You will end up with a macro like the following. (You can just paste
the following code into a module in your Normal.dot template in the
VBE; the explanation above shows how to generate it.)


Sub EditPaste()
'
' EditPaste Macro
' Inserts the Clipboard contents at the insertion point
'
'selection.Paste
Dialogs(wdDialogEditPasteSpecial).Show

End Sub
 
S

Shaun

man that was so easy. i feel stupid. i can query DB's
and display the results in forms all with the right click,
but i just couldn't find the name of the name of a simple
dialog to paste a graphic with.

thanks Kemosabe
 

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