Macros

L

ll

I am trying to make two simple macros which do not seem to work. If you can
help I would really appreciate it.

(1) I am trying to make a macro to go into Edit, Paste Special,
Unformatted Text. Every time I try to do it, the macro runs with the text
formatted.

(2) Word's toolbar print button when pressed, automatically prints the
page without giving you the Print dialog box first. So I am trying to make a
macro to print with the dialog box opening so I can then put it on the
toolbar. But I cannot end the macro with the dialog box open - it won't
allow it.
 
C

Chuck

(1) Paste unformatted:

Selection.PasteSpecial datatype:=wdPasteText

(2) Print dialog button

Not quite clear what you're after. If you just want a command bar button
that opens the print dialog you could drag the "Print..." command onto a
toolbar from the Customise dialog. Note that "Print..." gives you the print
dialog, while the "Print" command (no "...") sends the doc to print.

HTH
Chuck
 
G

Greg

ll

Try:

Sub ScratchMacro()
Selection.Range.PasteSpecial DataType:=wdPasteText
End Sub

A Word command already exists to handle your second issue.
View>Toolbars>Customize>Commands. In the file category search and look
for the two print commands. One is Print... the other is just Print.
Drag Print... and drop it on your file menu. Drag Print off the menu.
 
C

Charles Kenyon

Print... should already be in the menu, but Print is on the toolbar. I put
them both on my toolbar and changed the color of the button for the one that
opens the dialog box.
 

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