Re: protect doc?

Tech-Archive recommends: Fix windows errors by optimizing your registry



Please explain exactly what it is that you are trying to do so that you will
get the most appropriate advice.

--
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:%230iJyveIGHA.1676@xxxxxxxxxxxxxxxxxxxxxxx
> Thanks for the help.
>
> How to how where (the position of the form in original doc) to output the
> formfields?
>
> for example, oWordDocO.Content only return the text, is it only way just
> append the formfields at the end of the content? I want to get the
> original layout as well, oWordDocO.Content + formfields in they original
> position?
> is it possible?
>
>
>
>
> "Doug Robbins - Word MVP" <dkr@xxxxxxxxxxxxxxxxxx> wrote in message
> news:OBdPNCeIGHA.2036@xxxxxxxxxxxxxxxxxxxxxxx
>> If the values that you want are in formfields, use the .Result property
>> of each formfield.
>>
>> --
>> 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:e5s%23oUcIGHA.2472@xxxxxxxxxxxxxxxxxxxxxxx
>>> 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: protect doc?
    ... How to how where (the position of the form in original doc) to output the ... append the formfields at the end of the content? ... > Doug Robbins - Word MVP ... >>> services on a paid consulting basis. ...
    (microsoft.public.word.mailmerge.fields)
  • Re: Help: Advanced Template (dotx) Functionality
    ... Sub addrow() ... ' Macro created 02/02/03 by Doug Robbins ... There are various ways in which it can be enhanced, such as popping up a message box asking the user if they want to add another row, dealing with dropdown formfields, etc. ...
    (microsoft.public.word.docmanagement)
  • Re: Ref Field disappears
    ... Doug Robbins - Word MVP ... >> Formfields will only work if the section in which they are located is ... >> Please respond to the Newsgroup for the benefit of others who may be ... >>> I saved the template and open as a document. ...
    (microsoft.public.word.mailmerge.fields)
  • Re: Help Please
    ... Doug thank you, to answer your question, no it is not a protected document, ... It does have bookmarks assigned to formfields. ... > Doug Robbins - Word MVP ... >> I have a userform and on this form I have 6 Text Boxes and OK Button ...
    (microsoft.public.word.vba.customization)
  • Re: extract data from multiple Word forms into Excel
    ... How do I extract data from a table? ... > the data from the formfields with each piece of data separated by a tab. ... > Dim target As Document ... > Doug Robbins - Word MVP ...
    (microsoft.public.word.docmanagement)