|
-
May 17th, 2008, 05:55 AM
#1
Thread Starter
Junior Member
pass values to a table already made in an existing word document
hi
i want to pass values from the textboxes of my form to particular cell of an empty table that exists in a word document.
i use the following code to pass the value of a text box to a word document:
Set doc1 = oword.Documents.Open(App.Path & "\words\document1.doc")
doc1.content.paragraphs(doc1.paragraphs.Count).Range.Text = form1.Text1.Text
doc1.Save
doc1.Close
using that i take the value from the textbox (text1) and put that in the word document (document1).
in the word document i have already created a table which consists of 2 lines and 3 columns.
so,how can i write the value of textbox Text1 to a particular cell ,e.g cell[2,3] ?
attention! i am not too good in vb
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|