Hide form fields in printed form

G

Guest

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
 
C

Cindy M -WordMVP-

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

Guest

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

Cindy M -WordMVP-

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

Guest

Seems to work perfectly, Thanks a lot ...

Cindy M -WordMVP- said:
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)


This reply is posted in the Newsgroup; please post any
follow question or reply in the newsgroup and not by e-mail
:)
 
G

Guest

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
 
C

Cindy M -WordMVP-

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

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top