Home |
Search |
Today's Posts |
#1
|
|||
|
|||
Hide form fields in printed form
I am working on a few forms which will be filled out online by some and
printed by others. Is it possible to set it up in a way that the gray shading of form fields will show on screen but not in the printed document? I would prefer not to tell them that that have to open the forms toolbar and click to turn off the shading. Is it different if I use a MACROBUTTON NoMacro? Thank you, Brian |
#2
|
|||
|
|||
Hi ?B?QlA1MjI=?=,
I am working on a few forms which will be filled out online by some and printed by others. Is it possible to set it up in a way that the gray shading of form fields will show on screen but not in the printed document? I would prefer not to tell them that that have to open the forms toolbar and click to turn off the shading. I believe you'd need to use a macro (one named FilePrint would execute when the user uses that menu, for example) to turn off the field shading, send the print job, then reinstate the field shading. Is it different if I use a MACROBUTTON NoMacro? If you do this, you'd have no shading (or you'd be in the same predicament, where you'd have to change the document's formatting before, then after printing). Cindy Meister INTER-Solutions, Switzerland http://homepage.swissonline.ch/cindymeister (last update Jun 8 2004) http://www.word.mvps.org This reply is posted in the Newsgroup; please post any follow question or reply in the newsgroup and not by e-mail :-) |
#3
|
|||
|
|||
Thank you very much. I am not so familiar with writing Macros, where can I
learn more about macros in general and specfically how to write this fileprint macro? (PS. Sorry for the duplicate post, I got a message that it didn't send and tried again). "Cindy M -WordMVP-" wrote: Hi ?B?QlA1MjI=?=, I am working on a few forms which will be filled out online by some and printed by others. Is it possible to set it up in a way that the gray shading of form fields will show on screen but not in the printed document? I would prefer not to tell them that that have to open the forms toolbar and click to turn off the shading. I believe you'd need to use a macro (one named FilePrint would execute when the user uses that menu, for example) to turn off the field shading, send the print job, then reinstate the field shading. Is it different if I use a MACROBUTTON NoMacro? If you do this, you'd have no shading (or you'd be in the same predicament, where you'd have to change the document's formatting before, then after printing). Cindy Meister INTER-Solutions, Switzerland http://homepage.swissonline.ch/cindymeister (last update Jun 8 2004) http://www.word.mvps.org This reply is posted in the Newsgroup; please post any follow question or reply in the newsgroup and not by e-mail :-) |
#4
|
|||
|
|||
Hi ?B?QlA1MjI=?=,
I am not so familiar with writing Macros, where can I learn more about macros in general The word.mvps.org site is a good place to start, usually. specfically how to write this fileprint macro? The word.vba.beginners newsgroup would be a good place to get help. But here's some code to get you started. No guarantee it will do exactly what you need, though: Sub FilePrint() ActiveDocument.Formfields.Shaded = False Dialogs(wdDialogsFilePrint).Show ActiveDocument.FormFields.Shaded = True End Sub 'For the Print toolbar button Sub FilePrintDefault() ActiveDocument.Formfields.Shaded = False ActiveDocument.PrintOut ActiveDocument.FormFields.Shaded = True End Sub Cindy Meister INTER-Solutions, Switzerland http://homepage.swissonline.ch/cindymeister (last update Jun 8 2004) http://www.word.mvps.org This reply is posted in the Newsgroup; please post any follow question or reply in the newsgroup and not by e-mail :-) |
#5
|
|||
|
|||
Seems to work perfectly, Thanks a lot ...
"Cindy M -WordMVP-" wrote: Hi ?B?QlA1MjI=?=, I am not so familiar with writing Macros, where can I learn more about macros in general The word.mvps.org site is a good place to start, usually. specfically how to write this fileprint macro? The word.vba.beginners newsgroup would be a good place to get help. But here's some code to get you started. No guarantee it will do exactly what you need, though: Sub FilePrint() ActiveDocument.Formfields.Shaded = False Dialogs(wdDialogsFilePrint).Show ActiveDocument.FormFields.Shaded = True End Sub 'For the Print toolbar button Sub FilePrintDefault() ActiveDocument.Formfields.Shaded = False ActiveDocument.PrintOut ActiveDocument.FormFields.Shaded = True End Sub Cindy Meister INTER-Solutions, Switzerland http://homepage.swissonline.ch/cindymeister (last update Jun 8 2004) http://www.word.mvps.org This reply is posted in the Newsgroup; please post any follow question or reply in the newsgroup and not by e-mail :-) |
#6
|
|||
|
|||
Sorry one more question -- I aws able to get the macro working and reprotect
the document, but when I save the document and reopen it I can't unprotect it. Am I doing something wrong? Thanks again, I really appreciate it "Cindy M -WordMVP-" wrote: Hi ?B?QlA1MjI=?=, I am not so familiar with writing Macros, where can I learn more about macros in general The word.mvps.org site is a good place to start, usually. specfically how to write this fileprint macro? The word.vba.beginners newsgroup would be a good place to get help. But here's some code to get you started. No guarantee it will do exactly what you need, though: Sub FilePrint() ActiveDocument.Formfields.Shaded = False Dialogs(wdDialogsFilePrint).Show ActiveDocument.FormFields.Shaded = True End Sub 'For the Print toolbar button Sub FilePrintDefault() ActiveDocument.Formfields.Shaded = False ActiveDocument.PrintOut ActiveDocument.FormFields.Shaded = True End Sub Cindy Meister INTER-Solutions, Switzerland http://homepage.swissonline.ch/cindymeister (last update Jun 8 2004) http://www.word.mvps.org This reply is posted in the Newsgroup; please post any follow question or reply in the newsgroup and not by e-mail :-) |
#7
|
|||
|
|||
Hi ?B?QlA1MjI=?=,
Sorry one more question -- I aws able to get the macro working and reprotect the document, but when I save the document and reopen it I can't unprotect it. What the macro security setting on your machine (Tools/Macro/Security)? If it's not "Medium" or "Low" then this would be the problem. You have to lower macro security (to medium, so that you can selectively tell Word to allow macros to run, or not). Cindy Meister INTER-Solutions, Switzerland http://homepage.swissonline.ch/cindymeister (last update Jun 8 2004) http://www.word.mvps.org This reply is posted in the Newsgroup; please post any follow question or reply in the newsgroup and not by e-mail :-) |
Reply |
Thread Tools | |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
Hide form fields in printed form | Microsoft Word Help | |||
Duplicating form fields | Microsoft Word Help | |||
How to save form fields | Microsoft Word Help | |||
Linking dropdown form fields | Microsoft Word Help | |||
Text boxes in protected Doc, form fields | Microsoft Word Help |