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.

RE: Macros by Chuck

Chuck
Thu Jan 06 11:11:06 CST 2005

(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

"ll" wrote:

> 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.

Re: Macros by Greg

Greg
Thu Jan 06 11:22:18 CST 2005

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.


Re: Macros by Charles

Charles
Thu Jan 06 13:08:17 CST 2005

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.
--

Charles Kenyon

Word New User FAQ & Web Directory: http://addbalance.com/word

Intermediate User's Guide to Microsoft Word (supplemented version of
Microsoft's Legal Users' Guide) http://addbalance.com/usersguide

See also the MVP FAQ: http://www.mvps.org/word which is awesome!
--------- --------- --------- --------- --------- ---------
This message is posted to a newsgroup. Please post replies
and questions to the newsgroup so that others can learn
from my ignorance and your wisdom.

"Greg" <gmaxey@mvps.org> wrote in message
news:1105032137.982796.98010@z14g2000cwz.googlegroups.com...
> 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.
>