Macro

S

Sarah_Lecturer

I am creating a template based on forms....

How do I create a macro to

within the active document
remove protection
produce a dialogue box getting the user to "hilight relevant information"
bold (emboldens selection)
re-add protection to the document
end the macro

thanks for your help
 
J

Jezebel

How do I create a macro to

within the active document
remove protection
produce a dialogue box getting the user to "hilight relevant information"
bold (emboldens selection)
re-add protection to the document
end the macro

thanks for your help

Write it.
 
S

Sarah_Lecturer

Thanks Jezebel... I kind of gathered that and was hoping that someone may be
able to help me write it without the sarcasm?
 
H

Helmut Weber

Hi Sarah,

this one seems to work for me:

Sub test9003()
ActiveDocument.Unprotect
UserForm1.Show vbModeless
End Sub

plus

Private Sub UserForm_Terminate()
ActiveDocument.Protect wdAllowOnlyFormFields
End Sub

HTH

--
Greetings from Bavaria, Germany

Helmut Weber, MVP WordVBA

Win XP, Office 2003
"red.sys" & Chr$(64) & "t-online.de"
 
J

Jezebel

You need to ask a question if you want an answer. What have you tried so far
and where did you run into problems?
 

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