A Microsoft Office (Excel, Word) forum. OfficeFrustration

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.

Go Back   Home » OfficeFrustration forum » Microsoft Word » Tables
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

marco for data transfer



 
 
Thread Tools Display Modes
  #1  
Old July 20th, 2004, 04:53 PM
tomy
external usenet poster
 
Posts: n/a
Default 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  
Old August 23rd, 2004, 06:10 PM
Cindy M -WordMVP-
external usenet poster
 
Posts: n/a
Default

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

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump

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


All times are GMT +1. The time now is 04:11 PM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.