Delete Row

N

Neil

Hi there,

I'm trying to delete selected rows from a table using;

Selection.Rows.Delete

This works when i use Macro run. However when i assign the
Macro to a Command Button i get the following error msg
"RunTime error 4605 - Part or all of the object is not
assigned to the table"

Not sure what is happening here? The macro works fine
otherwise, just not when it is assigned to the Command
Button!

I'd be grateful for any help

Thanks in advance from Switzerland

Platform Word 2000, Windows 2000

Neil
 
G

Graham Mayor

The tool to delete table rows is inbuilt into Word - Drag tools > customize
commands > table > delete rows to the toolbar.
Select the rows you wish to delete and click the button.

--
<>>< ><<> ><<> <>>< ><<> <>>< <>>< ><<>
Graham Mayor - Word MVP
E-mail (e-mail address removed)
Web site www.gmayor.dsl.pipex.com
Word MVP web site www.mvps.org/word
<>>< ><<> ><<> <>>< ><<> <>>< <>>< ><<>
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top