View Single Post
  #12   Report Post  
Posted to microsoft.public.word.docmanagement,microsoft.public.word.vba.general
Louise Louise is offline
external usenet poster
 
Posts: 48
Default Changing default print settings

HI
I have just read through your article and, just to make sure, opened a new
document and copied the macro from scratch, following the instructions. I
still get the same Error message as outlined below though......

Any ideas why?
Thanks
Louise

"Jonathan West" wrote:

Hi Louise

Did you paste everything from "Sub FilePrintDefault()" up to and including
"End Sub"?

Did you follow the exact steps in this article?

What do I do with macros sent to me by other newsgroup readers to help me
out?
http://www.word.mvps.org/FAQs/Macros...eateAMacro.htm

--
Regards
Jonathan West - Word MVP
www.intelligentdocuments.co.uk
Please reply to the newsgroup
Keep your VBA code safe, sign the ClassicVB petition www.classicvb.org




"Louise" wrote in message
...
OK and thanks very much for your help.

My VBA knowledge is less than limited so I don't even know what to look
for.

Thanks again.
Louise

"Graham Mayor" wrote:

Short answer - I don't know. I have crossposted this to the vba forum to
see
if anyone can spot what I am missing.

--

Graham Mayor - Word MVP

My web site www.gmayor.com
Word MVP web site http://word.mvps.org


Louise wrote:
I did copy and paste it originally, I didn't re-type it. The quotes
are straight quotes...

"Graham Mayor" wrote:

Copy and paste from the original message to your vba editor

If you mean the ones in the msgbox text, check the quotes around
"print with markup" are straight quotes - I don't know enough about
quotes in international languages if you are not using an English
version to suggest a substitute.


--

Graham Mayor - Word MVP

My web site www.gmayor.com
Word MVP web site http://word.mvps.org



Louise wrote:
The text 'print with markup' is highlighted.

I have word 2003.

Louise

"Graham Mayor" wrote:

Which line is highlighted and which Word version - the macro was
tested on Word 2003.

--

Graham Mayor - Word MVP

My web site www.gmayor.com
Word MVP web site http://word.mvps.org


Louise wrote:
Graham

Thank you for your reply, however, I have copied your macro and
got the following error message:

Compile Error:
Invalid otside procedure

Any ideas what this means?

Thanks again.
Louise

"Graham Mayor" wrote:

The printer setting is determined by the document setting on the
reviewing toolbar. If that is set to 'showing markup' then so
will the printer.

A workaround would be to intercept the toolbar print button to
provide the choice eg

Sub FilePrintDefault()
Dim sPrint As String
sPrint = MsgBox("Print with Markup", vbYesNo)
If sPrint = vbYes Then
Application.PrintOut Item:= _
wdPrintDocumentWithMarkup
Else
Application.PrintOut Item:= _
wdPrintDocumentContent
End If
End Sub


You can still change individual items from the file print
command.

--

Graham Mayor - Word MVP

My web site www.gmayor.com
Word MVP web site http://word.mvps.org


Louise wrote:
Hi all

I have a large document which contains numerous comments. When
I print this document, 9 times out of 10 I want to print it
WITHOUT the comments, however, I tend to forget to change the
setting in the Print dialog box, and it is defaulted to
'document showing markup', therefore the comments print too.

If I change the setting to 'document', it changes for that one
print only and when I print it again, it goes back to 'showing
markup'. Is there a default setting I change somewhere for
printing, so the by default the comments don't print?

Thank you.
Louise