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

Re: Macro by Jezebel

Jezebel
Tue Jul 11 06:03:16 CDT 2006


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



Re: Macro by SarahLecturer

SarahLecturer
Tue Jul 11 06:55:02 CDT 2006

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

"Jezebel" wrote:

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

Re: Macro by Jezebel

Jezebel
Tue Jul 11 07:13:36 CDT 2006

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



"Sarah_Lecturer" <SarahLecturer@discussions.microsoft.com> wrote in message
news:586F7C5B-208A-4CF5-B77A-1A59A0709182@microsoft.com...
> Thanks Jezebel... I kind of gathered that and was hoping that someone may
> be
> able to help me write it without the sarcasm?
>
> "Jezebel" wrote:
>
>>
>> >
>> > 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.
>>
>>
>>



Re: Macro by Helmut

Helmut
Tue Jul 11 07:13:35 CDT 2006

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"