Group: microsoft.public.word.vba.general
From: "fumei via OfficeKB.com"
Date: Tuesday, March 18, 2008 11:18 AM
Subject: Re: Populate DocVariables in a Word Document

I think you were gently suggesting, but there is no wonder about it. You
know very well Excel will not. The object has to be fully qualified.

>doc.Variables("Broker_First_Name").Value = ...
>or
>objWord.activedocument.variables("Broker_First_Name")...

is required.

Helmut Weber wrote:
>Hi Ryan,
>
>I wonder whether Excel will know "activedocument".
>
>Try
>doc.Variables("Broker_First_Name").Value = ...
>or
>objWord.activedocument.variables("Broker_First_Name")...
>instead.
>
>--
>
>Greetings from Bavaria, Germany
>
>Helmut Weber, MVP WordVBA
>
>Vista Small Business, Office XP

--
Message posted via http://www.officekb.com

Safety Articles | Usenet Groups | Usenet News | Bluegrass