E
Edward
Hi everybody
I know how to add a table and populate the cells with some data and move
between cells but I don't know how to get out of the table in VBA?
what im trying to do is adding a table then populate them with data that i
have imported from excel and kept in an array then get off the table and
right below it insert a new table and populate the cells with othre data
sub test()
ActiveDocument.Tables.Add Range:=Selection.Range, NumRows:=2, NumColumns:= _
5, DefaultTableBehavior:=wdWord9TableBehavior, AutoFitBehavior:= _
wdAutoFitWindow
add cells with some data here
get out the table cells
insert a new table
add data in the new table and repeat these steps for a about 10 tables.
my question is first how can i unselect and get out of a table in VBA
second how can I know where( which position on the page ) im inserting a
table , I need to know this because if there is little room for a new table I
don't want to insert it in the same page and i want to go to the next page
and insert the new table so position control is needed in my program
Thanks,
I know how to add a table and populate the cells with some data and move
between cells but I don't know how to get out of the table in VBA?
what im trying to do is adding a table then populate them with data that i
have imported from excel and kept in an array then get off the table and
right below it insert a new table and populate the cells with othre data
sub test()
ActiveDocument.Tables.Add Range:=Selection.Range, NumRows:=2, NumColumns:= _
5, DefaultTableBehavior:=wdWord9TableBehavior, AutoFitBehavior:= _
wdAutoFitWindow
add cells with some data here
get out the table cells
insert a new table
add data in the new table and repeat these steps for a about 10 tables.
my question is first how can i unselect and get out of a table in VBA
second how can I know where( which position on the page ) im inserting a
table , I need to know this because if there is little room for a new table I
don't want to insert it in the same page and i want to go to the next page
and insert the new table so position control is needed in my program
Thanks,