-
Solved: Error when trying to delete row by macro
I have a template from Word 2003 that I am testing in Word 2010. I am getting an error (wrong number of arguments or invalid property assignment) when I run the macro that is supposed to delete a table row.
The code (from 2003) is as follows:
[vba]'Callback for g4b13 onAction
Sub DeleteRowAtCursorPosition()
' Select the row and delete it
Selection.SelectRow
Selection.Rows.Delete
' Collapse selection to an insertion point
Selection.Collapse Direction:=wdCollapseStart
End Sub[/vba]
I tried re-recording the steps and get the same code, so I don't know why it won't work in my macro.
Cheryl
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules