A
AltaEgo
I need to understand the VBA module and navigation in Word and programming
differences between Word and (say) Excel . For example
go to start of document
While not end of document
find a table
find a cell in the table
find a line
delete a line
insert a line
insert a row of cells in a table
insert a column of cells in a table
make the table column widths adjust for a new column of cells
etc.
My starting point for a learning project will be:
sub test(chars)
go to start of document
While not end of document
If line starts with chars
Then
whole line delete
Else
next line
End If
Wend
end if
End sub
Sub TableNavigation(chars, rownum)
Find table X
count rows
count columns
Read each cell in rownum
If cell in rownum contains (chars)
Then
check that the cell to the right is not blank
End if
End Sub
Sub TableMath()
Find table Y
Add a row of cells to the bottom
in each row, sum the rows above
End Sub
Can someone point me to a good web reference to get me up and running?
differences between Word and (say) Excel . For example
go to start of document
While not end of document
find a table
find a cell in the table
find a line
delete a line
insert a line
insert a row of cells in a table
insert a column of cells in a table
make the table column widths adjust for a new column of cells
etc.
My starting point for a learning project will be:
sub test(chars)
go to start of document
While not end of document
If line starts with chars
Then
whole line delete
Else
next line
End If
Wend
end if
End sub
Sub TableNavigation(chars, rownum)
Find table X
count rows
count columns
Read each cell in rownum
If cell in rownum contains (chars)
Then
check that the cell to the right is not blank
End if
End Sub
Sub TableMath()
Find table Y
Add a row of cells to the bottom
in each row, sum the rows above
End Sub
Can someone point me to a good web reference to get me up and running?