Reply
 
Thread Tools Display Modes
  #1   Report Post  
Posted to microsoft.public.word.docmanagement
Claudine Claudine is offline
external usenet poster
 
Posts: 3
Default Spell check for password protected forms

As password protection is essential for my form, can someone please tell me
exactly where I insert Graham Mayor's extra code quoted at the end of this
post?

Thanks to Graham's sample code, I have got the spell check macro working but
only without the password. Please assume I know nothing about visual basic -
I have not used it before and only made macros previously via recording, thus
avoiding inexplicable codes.

Many thanks for your advice. The users of my form will greatly appreciate
spell checking. Graham's extra code (but no advice on placement) is as
follows:

oDoc.Unprotect Password:="Password"


And:

oDoc.Protect Type:=wdAllowOnlyFormFields, NoReset:=True, _
Password:="Password"
  #2   Report Post  
Posted to microsoft.public.word.docmanagement
Jay Freedman Jay Freedman is offline
external usenet poster
 
Posts: 9,854
Default Spell check for password protected forms

On Thu, 12 Jun 2008 19:35:00 -0700, Claudine
wrote:

As password protection is essential for my form, can someone please tell me
exactly where I insert Graham Mayor's extra code quoted at the end of this
post?

Thanks to Graham's sample code, I have got the spell check macro working but
only without the password. Please assume I know nothing about visual basic -
I have not used it before and only made macros previously via recording, thus
avoiding inexplicable codes.

Many thanks for your advice. The users of my form will greatly appreciate
spell checking. Graham's extra code (but no advice on placement) is as
follows:

oDoc.Unprotect Password:="Password"


And:

oDoc.Protect Type:=wdAllowOnlyFormFields, NoReset:=True, _
Password:="Password"


I assume that somewhere in your macro, probably near the beginning, there is a
statement

oDoc.Unprotect

If you're using the macro from the article
http://www.word.mvps.org/FAQs/Macros...ProtectDoc.htm, that statement
is just after the comments

'If we've got this far, it's protected for forms
'Now unprotect the document

You need to change that line to

oDoc.Unprotect Password:="Password"

Similarly, somewhere near the end of the macro will be a statement

oDoc.Protect Type:=wdAllowOnlyFormFields, NoReset:=True

In the article's macro, that's just after the comment

'Re-protect the document

You must replace that with the two lines

oDoc.Protect Type:=wdAllowOnlyFormFields, NoReset:=True, _
Password:="Password"

Of course, replace the word in quotes with the actual password for the form.

--
Regards,
Jay Freedman
Microsoft Word MVP FAQ: http://word.mvps.org
Email cannot be acknowledged; please post all follow-ups to the newsgroup so all may benefit.
  #3   Report Post  
Posted to microsoft.public.word.docmanagement
Claudine Claudine is offline
external usenet poster
 
Posts: 3
Default Spell check for password protected forms

Thanks Jay for your clear excellent instructions - it worked perfectly! A
miracle after the head ache this literally caused me.

I'll be uploading my new and improved spell checkable form soon for State
Heritage Register nominations at www.heritage.nsw.gov.au/listings if others
want to see this (hopefully) in action.

Kind regards,
Claudine

"Jay Freedman" wrote:

On Thu, 12 Jun 2008 19:35:00 -0700, Claudine
wrote:

As password protection is essential for my form, can someone please tell me
exactly where I insert Graham Mayor's extra code quoted at the end of this
post?

Thanks to Graham's sample code, I have got the spell check macro working but
only without the password. Please assume I know nothing about visual basic -
I have not used it before and only made macros previously via recording, thus
avoiding inexplicable codes.

Many thanks for your advice. The users of my form will greatly appreciate
spell checking. Graham's extra code (but no advice on placement) is as
follows:

oDoc.Unprotect Password:="Password"


And:

oDoc.Protect Type:=wdAllowOnlyFormFields, NoReset:=True, _
Password:="Password"


I assume that somewhere in your macro, probably near the beginning, there is a
statement

oDoc.Unprotect

If you're using the macro from the article
http://www.word.mvps.org/FAQs/Macros...ProtectDoc.htm, that statement
is just after the comments

'If we've got this far, it's protected for forms
'Now unprotect the document

You need to change that line to

oDoc.Unprotect Password:="Password"

Similarly, somewhere near the end of the macro will be a statement

oDoc.Protect Type:=wdAllowOnlyFormFields, NoReset:=True

In the article's macro, that's just after the comment

'Re-protect the document

You must replace that with the two lines

oDoc.Protect Type:=wdAllowOnlyFormFields, NoReset:=True, _
Password:="Password"

Of course, replace the word in quotes with the actual password for the form.

--
Regards,
Jay Freedman
Microsoft Word MVP FAQ: http://word.mvps.org
Email cannot be acknowledged; please post all follow-ups to the newsgroup so all may benefit.

  #4   Report Post  
Posted to microsoft.public.word.docmanagement
Blair Blair is offline
external usenet poster
 
Posts: 1
Default Spell check for password protected forms



"Jay Freedman" wrote:

On Thu, 12 Jun 2008 19:35:00 -0700, Claudine
wrote:

As password protection is essential for my form, can someone please tell me
exactly where I insert Graham Mayor's extra code quoted at the end of this
post?

Thanks to Graham's sample code, I have got the spell check macro working but
only without the password. Please assume I know nothing about visual basic -
I have not used it before and only made macros previously via recording, thus
avoiding inexplicable codes.

Many thanks for your advice. The users of my form will greatly appreciate
spell checking. Graham's extra code (but no advice on placement) is as
follows:

oDoc.Unprotect Password:="Password"


And:

oDoc.Protect Type:=wdAllowOnlyFormFields, NoReset:=True, _
Password:="Password"


I assume that somewhere in your macro, probably near the beginning, there is a
statement

oDoc.Unprotect

If you're using the macro from the article
http://www.word.mvps.org/FAQs/Macros...ProtectDoc.htm, that statement
is just after the comments

'If we've got this far, it's protected for forms
'Now unprotect the document

You need to change that line to

oDoc.Unprotect Password:="Password"

Similarly, somewhere near the end of the macro will be a statement

oDoc.Protect Type:=wdAllowOnlyFormFields, NoReset:=True

In the article's macro, that's just after the comment

'Re-protect the document

You must replace that with the two lines

oDoc.Protect Type:=wdAllowOnlyFormFields, NoReset:=True, _
Password:="Password"

Of course, replace the word in quotes with the actual password for the form.

--
Regards,
Jay Freedman
Microsoft Word MVP FAQ: http://word.mvps.org
Email cannot be acknowledged; please post all follow-ups to the newsgroup so all may benefit.

  #5   Report Post  
Carlos Sanchez Carlos Sanchez is offline
Junior Member
 
Posts: 0
Default

Quote:
Originally Posted by Blair View Post
"Jay Freedman" wrote:

On Thu, 12 Jun 2008 19:35:00 -0700, Claudine
wrote:

As password protection is essential for my form, can someone please tell me
exactly where I insert Graham Mayor's extra code quoted at the end of this
post?

Thanks to Graham's sample code, I have got the spell check macro working but
only without the password. Please assume I know nothing about visual basic -
I have not used it before and only made macros previously via recording, thus
avoiding inexplicable codes.

Many thanks for your advice. The users of my form will greatly appreciate
spell checking. Graham's extra code (but no advice on placement) is as
follows:

oDoc.Unprotect Password:="Password"


And:

oDoc.Protect Type:=wdAllowOnlyFormFields, NoReset:=True, _
Password:="Password"


I assume that somewhere in your macro, probably near the beginning, there is a
statement

oDoc.Unprotect

If you're using the macro from the article
http://www.word.mvps.org/FAQs/Macros...ProtectDoc.htm, that statement
is just after the comments

'If we've got this far, it's protected for forms
'Now unprotect the document

You need to change that line to

oDoc.Unprotect Password:="Password"

Similarly, somewhere near the end of the macro will be a statement

oDoc.Protect Type:=wdAllowOnlyFormFields, NoReset:=True

In the article's macro, that's just after the comment

'Re-protect the document

You must replace that with the two lines

oDoc.Protect Type:=wdAllowOnlyFormFields, NoReset:=True, _
Password:="Password"

Of course, replace the word in quotes with the actual password for the form.

--
Regards,
Jay Freedman
Microsoft Word MVP FAQ: http://word.mvps.org
Email cannot be acknowledged; please post all follow-ups to the newsgroup so all may benefit.

Thank you http://word.mvps.org for posting the code and this forum for providing what was for me the missing link.
Reply
Thread Tools
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Using Spell Checker on Password Protected Forms in Word Beeliney Microsoft Word Help 16 April 30th 08 08:56 AM
how can I spell check a password protected document in Word? Word Question Microsoft Word Help 1 February 28th 08 10:09 PM
spell check in protected forms beverlydawn Microsoft Word Help 16 September 18th 07 03:56 PM
How do I enable spell check in a password protected template? MVaughn Microsoft Word Help 1 December 7th 04 06:33 PM
Spell Check on Password protected Documents Susan Microsoft Word Help 2 November 30th 04 09:05 PM


All times are GMT +1. The time now is 03:10 PM.

Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 Microsoft Office Word Forum - WordBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Word"