Re: protect doc?

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance



Thanks Doug,

How to get the form items value if the doc is protect?
I used strDoc = oWordDocO.Content, but I can't get the item values from
content property? Any ways? Please advice. Thanks again.


"Doug Robbins - Word MVP" <dkr@xxxxxxxxxxxxxxxxxx> wrote in message
news:emLNtMbFGHA.344@xxxxxxxxxxxxxxxxxxxxxxx
> It is is set to "True" a new template is created based on the template
> that is called by Template:=filename; if it is set to "False" a new
> document is created based on that template. The latter is what you would
> normally do.
>
> I am assuming that somewhere earlier in your code, the path and name of
> the template are loaded into the variable "filename".
>
> --
> Hope this helps.
>
> Please reply to the newsgroup unless you wish to avail yourself of my
> services on a paid consulting basis.
>
> Doug Robbins - Word MVP
>
> <js@xxxxxxxxxxx> wrote in message
> news:uN0zyeaFGHA.3172@xxxxxxxxxxxxxxxxxxxxxxx
>> Thanks Doug,
>>
>> Can you pls explain more about if NewTemplate:=True, or False what will
>> happen?
>>
>>
>> "Doug Robbins - Word MVP" <dkr@xxxxxxxxxxxxxxxxxx> wrote in message
>> news:%23lvwiOaFGHA.3944@xxxxxxxxxxxxxxxxxxxxxxx
>>> Do you really want to create a new template?
>>>
>>> Use
>>>
>>> Set oWordApp = CreateObject("Word.Application") 'New Word.Application
>>> Set oWordDocO = oWordApp.Documents.Add(Template:=filename,
>>> NewTemplate:=False)
>>>
>>>
>>> --
>>> Hope this helps.
>>>
>>> Please reply to the newsgroup unless you wish to avail yourself of my
>>> services on a paid consulting basis.
>>>
>>> Doug Robbins - Word MVP
>>>
>>> "js" <js@someone@hotmail.com> wrote in message
>>> news:OzzEsaWFGHA.2040@xxxxxxxxxxxxxxxxxxxxxxx
>>>> Hi,
>>>> if my doc is wdAllowOnlyFormFields, the .Add method will cause
>>>> DocumentBeforeClose event to fire, and won't let me open the doc,
>>>> how to fix this? thanks.
>>>>
>>>> ==============================================================
>>>> Set oWordApp = CreateObject("Word.Application") 'New Word.Application
>>>> Set oWordDocO = oWordApp.Documents.Add(Template:=filename,
>>>> NewTemplate:=True)
>>>>
>>>>
>>>>
>>>
>>>
>>
>>
>
>


.



Relevant Pages

  • Re: Why cant I download a template from Microsoft?
    ... Doug Robbins - Word MVP ... > installed on my computer ready to be activated if I paid for it. ... I just need to figure out how to get the template not to ... >> Please respond to the Newsgroup for the benefit of others who may be ...
    (microsoft.public.word.docmanagement)
  • Re: key behavior
    ... services on a paid consulting basis. ... Doug Robbins - Word MVP, ... template or how to make the template. ...
    (microsoft.public.word.vba.beginners)
  • Re: Unwanted option in file menu
    ... Please respond to the Newsgroup for the benefit of others who may be ... >>program has installed a template in the Word Startup ... >>Doug Robbins - Word MVP ...
    (microsoft.public.word.customization.menustoolbars)
  • Re: Mailmerge macro doesnt work in WORD 2007
    ... Please reply to the newsgroup unless you wish to avail yourself of my ... services on a paid consulting basis. ... Doug Robbins - Word MVP ... Protection on certain sections of the template ...
    (microsoft.public.word.mailmerge.fields)
  • Re: Merge Doc: How to Share Without Getting Busy Message
    ... Please reply to the newsgroup unless you wish to avail yourself of my ... services on a paid consulting basis. ... Doug Robbins - Word MVP ... It would be great if we could get our users to open the template, ...
    (microsoft.public.word.mailmerge.fields)