Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Office Automation?
Message
From
17/11/2003 06:40:39
 
 
To
16/11/2003 17:43:55
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00850499
Message ID:
00850579
Views:
14
Hi Jeff.

Is there a way to do the reverse, say I have a word document with a table of names and address. How could I move the data from this word table to a VFP table?

I just did a little testing from the command window, and it seems like it shouldn't be too hard. This works:
oDoc = GETOBJECT( 'D:\OFFICEXP\DOCUMENTS\MGA.DOC' )
oTable = oDoc.Tables( 1 )
lnRows = oTable.Rows.Count
lnCols = oTable.Columns.count
FOR lnI = 1 TO lnRows
  FOR lnJ = 1 TO lnCols
    ?otable.Cell( lnI, lnJ).Range.Text
  ENDFOR
ENDFOR
Previous
Reply
Map
View

Click here to load this message in the networking platform