View Single Post
 
Old 05-23-2014, 03:12 AM
chinchee chinchee is offline Windows 7 64bit Office 2010 64bit
Novice
 
Join Date: May 2014
Posts: 10
chinchee is on a distinguished road
Default

Hi macropod,

I think I have answered you question?

How is the code to recognize the table?
Like I said - I was just planning on using a really crude macro something like the following:

Sub Macro1()
'
' Macro1 Macro
'
'
Selection.MoveDown Unit:=wdLine, Count:=4
Selection.MoveUp Unit:=wdLine, Count:=1
Selection.MoveRight Unit:=wdCharacter, Count:=3
Selection.MoveLeft Unit:=wdCharacter, Count:=1
Selection.MoveRight Unit:=wdCharacter, Count:=19, Extend:=wdExtend
Selection.Copy
End Sub

VBA can find tables easily enough, but how would it know then it's found the correct table? And, given that there's more than one table in the document, are the data in every table, or just one/some?
As I said, the datas are in exact "location" for every document, so I think the above macro should be alright - but I do agree with you that it is very crude

I must admit that I am a begineer to VBA, I am still trying to find my way around. Please bear with me if I sound like a total idiot.
Reply With Quote