If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below. |
|
|
Thread Tools | Display Modes |
#1
|
|||
|
|||
marco for data transfer
hi folks
want to transfer some data located in Excel to a table in word by clicking the button. to open the correct template is ok, afterwords have set a bookmark in the appropirate cell in the word table and now a can i move the pointer one cell further to fill data from the secend cell in Excel ? i'm confused about the correct method i should use. any help or ideas ? regards tomy |
#2
|
|||
|
|||
Hi =?Utf-8?B?dG9teQ==?=,
want to transfer some data located in Excel to a table in word by clicking the button. to open the correct template is ok, afterwords have set a bookmark in the appropirate cell in the word table and now a can i move the pointer one cell further to fill data from the secend cell in Excel ? i'm confused about the correct method i should use. Best is to not move the "pointer" (cursor/insertion point), but to address the cells in the table directly. This is faster and more accurate. Code example: Dim tbl as Word.Table Dim doc as Word.Document Set doc = wordapp.Documents.Add("C:\test\test.dot") Set tbl = doc.Tables(1) tbl.Cells(1, 1).Range.Text = "text" The first Cells index is the row index, the second the column index. Cindy Meister INTER-Solutions, Switzerland http://homepage.swissonline.ch/cindymeister (last update Jun 8 2004) 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 :-) |
Thread Tools | |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Macro to transfer data | john | Worksheet Functions | 0 | July 13th, 2004 10:19 AM |
help! new computer want to transfer entire settings and mail | cominus | Outlook Express | 2 | July 10th, 2004 06:57 AM |
Transfer from laptop to desktop | Wendy | Setup, Installing & Configuration | 2 | June 6th, 2004 10:06 PM |
Help transfer my emails to my new computer | Sippawitz | General Discussion | 4 | May 31st, 2004 11:39 AM |
oem office 2000 sr1 license transfer | Stephen Oeffinger | General Discussions | 2 | May 21st, 2004 11:13 AM |