I have a document in Word which has hyperlinks to different parts in the document. I want to create a button in this document for people to click on to print the current page. Any suggestions as to how I can do this, if this is possible. Thanks
I have a document in Word which has hyperlinks to different parts in the document. I want to create a button in this document for people to click on to print the current page. Any suggestions as to how I can do this, if this is possible. Thanks

This month, every Windows Secrets subscriber can download a one-chapter excerpt of Windows 7: The Missing Manual.Windows 7: The Missing Manual provides valuable information to help you overcome these difficulties in learning a new operating system. Subscribe today to download your free excerpt.
The one line VBA code
<code>ActiveDocument.PrintOut Range:=wdPrintCurrentPage</code>
Will print the current page to the default printer.
You could create this as a simple Macro and assign it to a toolbar button. Is this what you want?
StuartR
It is, but I don't want to create a toolbar button, I want to have a button or whatever in my Word document that people can click to send the current page to print. I hope this make sense to you.
Create a command button and assign this code to it:
<pre>Private Sub CommandButton1_Click()
Application.PrintOut FileName:="", Range:=wdPrintCurrentPage, Item:= _
wdPrintDocumentContent, Copies:=1, Pages:="", PageType:=wdPrintAllPages, _
ManualDuplexPrint:=False, Collate:=True, Background:=True, PrintToFile:= _
False, PrintZoomColumn:=0, PrintZoomRow:=0, PrintZoomPaperWidth:=0, _
PrintZoomPaperHeight:=0
End Sub
</pre>
John
A Child's Mind, Once Stretched by Imagination...
Never Regains Its Original Dimensions
You can use a Macrobutton field to run a Macro.
For example, if you call your Macro PrintThisPage, you could have a field that looked like the attached image (the picture was just pasted into the appropriate place in the field code).
StuartR
Wow, so many choices! A MACROBUTTON field needs to be double-clicked. Your users may find that completely natural, or not get it at all. The Control Toolbox button only needs to be single-clicked (single-pressed?). However, in some cases, the user might see a Design Mode toolbar or other strange artifact when opening the document. Probably a good idea to test in your environment and see what works best for you.