Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Westi on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

put data from combo in word

Status
Not open for further replies.
Mar 27, 2002
168
NL
Does somebody know what's the easiest way to populate data from a combo box to a word table?
I'm new in export information to wordtables so if somebody have a little example code for me I'm very happy

Thnx in advance,
gERard
 
If I make the assumption that you have already referenced Word and opened the word document with the table already in it, then all you need is:

with appWord
.ActiveDocument.Tables(1).Cell(2, 5).Select
.Selection.TypeText Text:=me.cboWord.value
end with

will put the value from cboWord into the 5th cell on the 2nd row of the 1st table in the document.

if you need any more help, let me know.

Ben ----------------------------------------
Ben O'Hara
Home: bpo@SickOfSpam.RobotParade.co.uk
Work: bo104@SickOfSpam.westyorkshire.pnn.police.uk
(in case you've not worked it out get rid of Sick Of Spam to mail me!)
Web: ----------------------------------------
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top