Re: FillIn or MergeField from VB by Doug
Doug
Wed Feb 23 18:07:20 CST 2005
ActiveDocument.Variables("varname").Value = "Some Value"
--
Please respond to the Newsgroup for the benefit of others who may be
interested. Questions sent directly to me will only be answered on a paid
consulting basis.
Hope this helps,
Doug Robbins - Word MVP
"krlos" <krlos@discussions.microsoft.com> wrote in message
news:5346CAAB-7438-44A9-ADEB-102AC0E99CDB@microsoft.com...
> Very very new with Word; how should I assign variables in a Word doc?
>
> "Doug Robbins" wrote:
>
>> I would be assigning the data to document variables and displaying it
>> when
>> and where needed in the documents by inserting {DOCVARIABLE varname }
>> fields
>>
>> --
>> Please respond to the Newsgroup for the benefit of others who may be
>> interested. Questions sent directly to me will only be answered on a
>> paid
>> consulting basis.
>>
>> Hope this helps,
>> Doug Robbins - Word MVP
>> "krlos" <krlos@discussions.microsoft.com> wrote in message
>> news:90317D6E-E4C4-4102-9DC3-E15F2F98886F@microsoft.com...
>> > I'm trying to insert data from a recordset into Word fields.(not sure
>> > if
>> > Fillin or MergeField would be best appropiate)
>> >
>> > - How I'd like to use it?
>> > I'd like to use the Field Name to retrieve from rstemp(Fields.Name)
>> > that
>> > way I can use different templates with same functionality.
>> >
>> > The template will determine the fields that would get populate it from
>> > the
>> > rstemp
>> >
>> > Any help would be appreciate it
>> >
>> >
>>
>>
>>