Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.word.docmanagement
|
|||
|
|||
Changing default print settings
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 |
#2
Posted to microsoft.public.word.docmanagement
|
|||
|
|||
Changing default print settings
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 |
#3
Posted to microsoft.public.word.docmanagement
|
|||
|
|||
Changing default print settings
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 |
#4
Posted to microsoft.public.word.docmanagement
|
|||
|
|||
Changing default print settings
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 |
#5
Posted to microsoft.public.word.docmanagement
|
|||
|
|||
Changing default print settings
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 |
#6
Posted to microsoft.public.word.docmanagement
|
|||
|
|||
Changing default print settings
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 |
#7
Posted to microsoft.public.word.docmanagement
|
|||
|
|||
Changing default print settings
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 |
#8
Posted to microsoft.public.word.docmanagement,microsoft.public.word.vba.general
|
|||
|
|||
Changing default print settings
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 |
#9
Posted to microsoft.public.word.docmanagement,microsoft.public.word.vba.general
|
|||
|
|||
Changing default print settings
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 |
#10
Posted to microsoft.public.word.docmanagement,microsoft.public.word.vba.general
|
|||
|
|||
Changing default print settings
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 |
#11
Posted to microsoft.public.word.docmanagement,microsoft.public.word.vba.general
|
|||
|
|||
Changing default print settings
Hi
Yes i copied everything because i couldn't have created that on my own. i'll read through your article and give it another go. 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 |
#12
Posted to microsoft.public.word.docmanagement,microsoft.public.word.vba.general
|
|||
|
|||
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 |
#13
Posted to microsoft.public.word.docmanagement,microsoft.public.word.vba.general
|
|||
|
|||
Changing default print settings
Please help.....!!
This macro is now causing me problems. It has been saved into my normal.dot so whenever I now click onto the print icon, i get the error message from the macro saying there is a problem and it cannot run. I have tried to delete the macro altogether but it says I can't because it doesn't work properly? I know that, which is why I'm trying to delete it.... How can I remove the macro altogether from normal.dot - whether it works or not?? Thank you. Louise "Louise" wrote: 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 |
#14
Posted to microsoft.public.word.docmanagement,microsoft.public.word.vba.general
|
|||
|
|||
Changing default print settings
Open the macro editor ALT+F11
From the RUN menu, click 'reset' Close the editor From Word Tools Macro Macros select the macro from the list and click delete. -- Graham Mayor - Word MVP My web site www.gmayor.com Word MVP web site http://word.mvps.org Louise wrote: Please help.....!! This macro is now causing me problems. It has been saved into my normal.dot so whenever I now click onto the print icon, i get the error message from the macro saying there is a problem and it cannot run. I have tried to delete the macro altogether but it says I can't because it doesn't work properly? I know that, which is why I'm trying to delete it.... How can I remove the macro altogether from normal.dot - whether it works or not?? Thank you. Louise "Louise" wrote: 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 |
#15
Posted to microsoft.public.word.docmanagement,microsoft.public.word.vba.general
|
|||
|
|||
Changing default print settings
I am not sure how you are trying to delete it.
Open the Visual Basic Editor (Alt+F11) and then locate the macro and select and delete it. -- Hope this helps. Please reply to the newsgroup unless you wish to avail yourself of my services on a paid consulting basis. Doug Robbins - Word MVP "Louise" wrote in message ... Please help.....!! This macro is now causing me problems. It has been saved into my normal.dot so whenever I now click onto the print icon, i get the error message from the macro saying there is a problem and it cannot run. I have tried to delete the macro altogether but it says I can't because it doesn't work properly? I know that, which is why I'm trying to delete it.... How can I remove the macro altogether from normal.dot - whether it works or not?? Thank you. Louise "Louise" wrote: 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 |
#16
Posted to microsoft.public.word.docmanagement,microsoft.public.word.vba.general
|
|||
|
|||
Changing default print settings
Thank you. I was trying to choose 'delete' from the Macros dialog but it
wouldn't let me. Louise "Graham Mayor" wrote: Open the macro editor ALT+F11 From the RUN menu, click 'reset' Close the editor From Word Tools Macro Macros select the macro from the list and click delete. -- Graham Mayor - Word MVP My web site www.gmayor.com Word MVP web site http://word.mvps.org Louise wrote: Please help.....!! This macro is now causing me problems. It has been saved into my normal.dot so whenever I now click onto the print icon, i get the error message from the macro saying there is a problem and it cannot run. I have tried to delete the macro altogether but it says I can't because it doesn't work properly? I know that, which is why I'm trying to delete it.... How can I remove the macro altogether from normal.dot - whether it works or not?? Thank you. Louise "Louise" wrote: 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 |
Reply |
Thread Tools | |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
Print default | New Users | |||
Print document without comments by default | Page Layout | |||
Print Settings saved between sessions | Microsoft Word Help | |||
Default Print settings | Microsoft Word Help | |||
Default font settings cannot be saved | Microsoft Word Help |