I am learning VBA and am using a WORD 2007 macro-enabled template to capture hours worked and accomplishments for four tasks.
I need to SUM the rows for each task and SUM the columns for each day of the week. I do not want to have to click on the totals cell and then click "update" for all eleven totals. I am trying to use a VBA macro to update these 11 fields when I click a command button.
However, when I try this, I get the error, Run-time error. "This method or property is not available because some or all of the object does not refer to a table."
When I click Debug the VBE shows the following instruction as the culprit -
Selection.MoveRight Unit:=wdCell
I have tried using "Count:=1"
I have tried using "Count:=1, Extend:=wdMove
Same error. I am certain I am overlooking something simple. But, I may also be trying to use the commands in a manner for which they are not intended.
I would appreciate any assistance/guidance anyone can offer.
Thanks,
Ferg