Tags: andprinted, fields, filled, form, forms, grayshading, hide, microsoft, msdn, online, printed, software, word, working

Hide form fields in printed form

On Microsoft » Microsoft Word

7,960 words with 6 Comments; publish: Sun, 01 Jun 2008 14:10:00 GMT; (300171.88, « »)

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

All Comments

Leave a comment...

  • 6 Comments
    • Hi =?Utf-8?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 :-)

      #1; Sun, 01 Jun 2008 14:11:00 GMT
    • 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 =?Utf-8?B?QlA1MjI=?=,

      > 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.

      > 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 :-)

      >

      #2; Sun, 01 Jun 2008 14:12:00 GMT
    • Hi =?Utf-8?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

      :-)

      #3; Sun, 01 Jun 2008 14:13:00 GMT
    • Seems to work perfectly, Thanks a lot ...

      "Cindy M -WordMVP-" wrote:

      > Hi =?Utf-8?B?QlA1MjI=?=,

      > The word.mvps.org site is a good place to start, usually.

      > 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

      > :-)

      >

      #4; Sun, 01 Jun 2008 14:14:00 GMT
    • 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 =?Utf-8?B?QlA1MjI=?=,

      > The word.mvps.org site is a good place to start, usually.

      > 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; Sun, 01 Jun 2008 14:15:00 GMT
    • Hi =?Utf-8?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 :-)

      #6; Sun, 01 Jun 2008 14:16:00 GMT