J
Joanne
Hello,
I'm trying to write a macro that simply adds up the values from cells e9 to
e19 in a table. I'm just starting to write the code and this first line
keeps giving me the following error when I compile it: "Expected function or
variable". I don't understand. I thought I could assign a value to a
selection.
Thanks very much for your help
Dim vSum As Variant
Dim i as integer
For i = 9 To 19
vSum = ActiveDocument.Tables(1).Cell(Row:=i, Column:=5).Select
Next i
End Sub
I'm trying to write a macro that simply adds up the values from cells e9 to
e19 in a table. I'm just starting to write the code and this first line
keeps giving me the following error when I compile it: "Expected function or
variable". I don't understand. I thought I could assign a value to a
selection.
Thanks very much for your help
Dim vSum As Variant
Dim i as integer
For i = 9 To 19
vSum = ActiveDocument.Tables(1).Cell(Row:=i, Column:=5).Select
Next i
End Sub