Reply
 
Thread Tools Display Modes
  #1   Report Post  
Posted to microsoft.public.word.mailmerge.fields
Marty Marty is offline
external usenet poster
 
Posts: 28
Default Visual Basic text box

Hi-

I have an app which uses MS Visual Basic forms to allow users to input info.
This is then mailmerged into a document.

Is it possible (if so, how) to have a default value display in a text box?
The hard part: the value will vary, and will be the value of a field in a
file which the mailmerge uses.

The VB app already read the file, and knows the value, but how do I get it
into the text box as a default value? Somehow I need TextBox.Value to equal
my variable (pm_patent_no) which I previously read. Then the TextBox.Value
should display and the user can accept it or overtype something.

Thanks for you help in advance.

Marty
  #2   Report Post  
Posted to microsoft.public.word.mailmerge.fields
Cindy M. Cindy M. is offline
external usenet poster
 
Posts: 2,416
Default Visual Basic text box

Hi Marty,

I have an app which uses MS Visual Basic forms to allow users to input info.
This is then mailmerged into a document.

If you're programming this in Visual Basic, then you need to address your
question to a Visual Basic group. Without knowing the internals of your
project, all one can really say is that you make these assignments after you've
read the values into the variables. (I can hardly believe you've programmed
what you say you have without knowing how to assign a value to a form control
at run-time...)

Is it possible (if so, how) to have a default value display in a text box?
The hard part: the value will vary, and will be the value of a field in a
file which the mailmerge uses.

The VB app already read the file, and knows the value, but how do I get it
into the text box as a default value? Somehow I need TextBox.Value to equal
my variable (pm_patent_no) which I previously read. Then the TextBox.Value
should display and the user can accept it or overtype something.


Cindy Meister
INTER-Solutions, Switzerland
http://homepage.swissonline.ch/cindymeister (last update Jun 17 2005)
http://www.word.mvps.org

This reply is posted in the Newsgroup; please post any follow question or reply
in the newsgroup and not by e-mail :-)

Reply
Thread Tools
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Header with picture or text box Scott Page Layout 15 April 28th 23 02:52 AM
Creating dynamic cross reference links in a Word document torajudo Microsoft Word Help 5 April 27th 23 08:57 PM
ADD A WATERMARK TO A TEXT BOX Snoopy Microsoft Word Help 6 April 25th 23 08:50 PM
manipulating/cutting/pasting text out of a text box [email protected] Microsoft Word Help 10 July 9th 06 10:54 PM
Word applies direct format on File open Uriel Microsoft Word Help 16 November 27th 05 07:22 PM


All times are GMT +1. The time now is 10:20 PM.

Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 Microsoft Office Word Forum - WordBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Word"