I know this is the programming group, but I hope one of you generous people
will know this.

I have 2 documents, A and B. I am interested in putting a doc property of
Doc
A into Doc B.

I think a field reference would be good, but I have only found references
for bookmarks, not doc properties.

Any recommendations?

Thanks

Re: Doc property into another document by Jezebel

Jezebel
Fri Jul 07 18:03:18 CDT 2006

Assuming, you have references to both documents ---

Dim pProp as Word.DocumentProperty

set pProp = DocA.CustomDocumentProperties("MyProp")
DocB.CustomDocumentProperties.Add Name:="MyProp", LinkToContent:=False,
Type:=pProp.Type, Value:=pProp.Value


However, given the wording of your question, I suspect you didn't have in
mind a VBA solution. What are you actually trying to do?





"LarryLL" <LarryLL@discussions.microsoft.com> wrote in message
news:5EB73388-B0AA-4E32-9335-F8CC74372376@microsoft.com...
>I know this is the programming group, but I hope one of you generous people
> will know this.
>
> I have 2 documents, A and B. I am interested in putting a doc property of
> Doc
> A into Doc B.
>
> I think a field reference would be good, but I have only found references
> for bookmarks, not doc properties.
>
> Any recommendations?
>
> Thanks
>



Re: Doc property into another document by LarryLL

LarryLL
Fri Jul 07 18:25:01 CDT 2006

Thanks for your response.

Document B is an list of Documents, with information about each, including
the currently submitted revision. (This revision is in the Doc property)

I am interested in having the Document list automatically contain the
current revision for each document, without having to manually update it.

Field references work well within an active document, I am hoping I can find
a way to use a similar method between documents.

"Jezebel" wrote:

> Assuming, you have references to both documents ---
>
> Dim pProp as Word.DocumentProperty
>
> set pProp = DocA.CustomDocumentProperties("MyProp")
> DocB.CustomDocumentProperties.Add Name:="MyProp", LinkToContent:=False,
> Type:=pProp.Type, Value:=pProp.Value
>
>
> However, given the wording of your question, I suspect you didn't have in
> mind a VBA solution. What are you actually trying to do?
>
>
>
>
>
> "LarryLL" <LarryLL@discussions.microsoft.com> wrote in message
> news:5EB73388-B0AA-4E32-9335-F8CC74372376@microsoft.com...
> >I know this is the programming group, but I hope one of you generous people
> > will know this.
> >
> > I have 2 documents, A and B. I am interested in putting a doc property of
> > Doc
> > A into Doc B.
> >
> > I think a field reference would be good, but I have only found references
> > for bookmarks, not doc properties.
> >
> > Any recommendations?
> >
> > Thanks
> >
>
>
>

Re: Doc property into another document by Jezebel

Jezebel
Fri Jul 07 18:37:36 CDT 2006

Select and copy the value in document A. Switch to document B. Paste Special
(text, formatted or unformatted) with the 'Paste Link' checkbox ticked.




"LarryLL" <LarryLL@discussions.microsoft.com> wrote in message
news:FBD993E0-6583-4C78-AB1C-5D5C845027BC@microsoft.com...
> Thanks for your response.
>
> Document B is an list of Documents, with information about each, including
> the currently submitted revision. (This revision is in the Doc property)
>
> I am interested in having the Document list automatically contain the
> current revision for each document, without having to manually update it.
>
> Field references work well within an active document, I am hoping I can
> find
> a way to use a similar method between documents.
>
> "Jezebel" wrote:
>
>> Assuming, you have references to both documents ---
>>
>> Dim pProp as Word.DocumentProperty
>>
>> set pProp = DocA.CustomDocumentProperties("MyProp")
>> DocB.CustomDocumentProperties.Add Name:="MyProp", LinkToContent:=False,
>> Type:=pProp.Type, Value:=pProp.Value
>>
>>
>> However, given the wording of your question, I suspect you didn't have in
>> mind a VBA solution. What are you actually trying to do?
>>
>>
>>
>>
>>
>> "LarryLL" <LarryLL@discussions.microsoft.com> wrote in message
>> news:5EB73388-B0AA-4E32-9335-F8CC74372376@microsoft.com...
>> >I know this is the programming group, but I hope one of you generous
>> >people
>> > will know this.
>> >
>> > I have 2 documents, A and B. I am interested in putting a doc property
>> > of
>> > Doc
>> > A into Doc B.
>> >
>> > I think a field reference would be good, but I have only found
>> > references
>> > for bookmarks, not doc properties.
>> >
>> > Any recommendations?
>> >
>> > Thanks
>> >
>>
>>
>>



Re: Doc property into another document by LarryLL

LarryLL
Fri Jul 07 19:11:01 CDT 2006

Thank you very much; That was a lot easier that what I was trying.

Have a good weekend.

"Jezebel" wrote:

> Select and copy the value in document A. Switch to document B. Paste Special
> (text, formatted or unformatted) with the 'Paste Link' checkbox ticked.
>
>
>
>
> "LarryLL" <LarryLL@discussions.microsoft.com> wrote in message
> news:FBD993E0-6583-4C78-AB1C-5D5C845027BC@microsoft.com...
> > Thanks for your response.
> >
> > Document B is an list of Documents, with information about each, including
> > the currently submitted revision. (This revision is in the Doc property)
> >
> > I am interested in having the Document list automatically contain the
> > current revision for each document, without having to manually update it.
> >
> > Field references work well within an active document, I am hoping I can
> > find
> > a way to use a similar method between documents.
> >
> > "Jezebel" wrote:
> >
> >> Assuming, you have references to both documents ---
> >>
> >> Dim pProp as Word.DocumentProperty
> >>
> >> set pProp = DocA.CustomDocumentProperties("MyProp")
> >> DocB.CustomDocumentProperties.Add Name:="MyProp", LinkToContent:=False,
> >> Type:=pProp.Type, Value:=pProp.Value
> >>
> >>
> >> However, given the wording of your question, I suspect you didn't have in
> >> mind a VBA solution. What are you actually trying to do?
> >>
> >>
> >>
> >>
> >>
> >> "LarryLL" <LarryLL@discussions.microsoft.com> wrote in message
> >> news:5EB73388-B0AA-4E32-9335-F8CC74372376@microsoft.com...
> >> >I know this is the programming group, but I hope one of you generous
> >> >people
> >> > will know this.
> >> >
> >> > I have 2 documents, A and B. I am interested in putting a doc property
> >> > of
> >> > Doc
> >> > A into Doc B.
> >> >
> >> > I think a field reference would be good, but I have only found
> >> > references
> >> > for bookmarks, not doc properties.
> >> >
> >> > Any recommendations?
> >> >
> >> > Thanks
> >> >
> >>
> >>
> >>
>
>
>