View Single Post
 
Old 07-16-2010, 09:35 AM
matto matto is offline Windows 7 Office 2003
Novice
 
Join Date: Jul 2010
Posts: 1
matto is on a distinguished road
Default inserting a string of data into an MS Word table???

Hey!!

I've got a string that I've populated with data (from MSAccess...) and I want to insert this data into a table.

There are two columns (midwayish) in the table that this data should go into. I've got the first cell where data should go bookmarked as "police".

I've got a string called cops filled with the information as such (so far): "name" & vbTab & "number" & vbCr & "name2" & vbTab & "number2" (etc)

Now if there was a character that reprsented the arrow keys on the keyboard, I could simply replace vbTab with the Right arrow key, and vbCr with a Down and Left arrow key maneuver and that would be problem solved. But I don't know if this is possible.

If that were the case, this would be all I'd have to do:
Code:
.ActiveDocument.Bookmarks("police").Select
.Selection.Text = (cops)
Any ideas on how to do this?
Reply With Quote