Jerem,
The trick is usually to format as hidden and make sure that the print hidden
option is off. In PrintPreview mode you shouldn't see it, if hidden.
See the section "Modifying the MacroButton Code"
<http://pubs.logicalexpressions.com/pub0009/LPMArticle.asp?ID=95>
> Good question and good answer, however, how do you get the macrobutton to
> appear in the document but not print out when you print the document. I want
[quoted text clipped - 21 lines]
>>>>
>>>> Ernest

Signature
Russ
drsmN0SPAMikleAThotmailD0Tcom.INVALID
Russ - 21 Jul 2007 21:50 GMT
Jerem,
You can display or hide hidden objects to the user, but if the print option
is set correctly, it won't print even though the user sees it in normal
mode, although the user won't see it in PrintPreview.
For hidden font text you can toggle
The Main Toolbar Show/Hide Button (¶)
Or use VBA code:
ActiveWindow.ActivePane.View.ShowAll = Not ActiveWindow.ActivePane.View. _
ShowAll
or
ActiveWindow.ActivePane.View.ShowAll = True 'or False
> Jerem,
> The trick is usually to format as hidden and make sure that the print hidden
[quoted text clipped - 28 lines]
>>>>>
>>>>> Ernest

Signature
Russ
drsmN0SPAMikleAThotmailD0Tcom.INVALID
Russ - 21 Jul 2007 22:02 GMT
Jerem,
It is polite to store the all the user's settings or options that you are
going to mess with and restore them at the end of your macro.
For example:
Dim theShowAll as Boolean
theShowAll = ActiveWindow.ActivePane.View.ShowAll
...
ActiveWindow.ActivePane.View.ShowAll = True' or False
...
ActiveWindow.ActivePane.View.ShowAll = theShowAll
> Jerem,
> You can display or hide hidden objects to the user, but if the print option
[quoted text clipped - 43 lines]
>>>>>>
>>>>>> Ernest

Signature
Russ
drsmN0SPAMikleAThotmailD0Tcom.INVALID