Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Word / Programming / January 2005

Tip: Looking for answers? Try searching our database.

Macros

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
ll - 06 Jan 2005 16:44 GMT
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.
Chuck - 06 Jan 2005 17:11 GMT
(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

> I am trying to make two simple macros which do not seem to work.  If you can
> help I would really appreciate it.
[quoted text clipped - 8 lines]
> toolbar.  But I cannot end the macro with the dialog box open - it won't
> allow it.
Greg - 06 Jan 2005 17:21 GMT
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.
Charles Kenyon - 06 Jan 2005 19:07 GMT
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.
Signature


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.

> ll
>
[quoted text clipped - 8 lines]
> 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.

Rate this thread:






 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.