Creating an "Add" button

  • Thread starter Thread starter Richard
  • Start date Start date
R

Richard

In Word 2003 is there a way to create a button on a form that would add
another line to a table for additional entries?
 
The second option works great, however, the document that I want to attach
this macro to contains 9 separate tables and this macro inserts the new row
on only the first table. Is there a way for me to assign this macro to
specific tables in the document? In particular I need it to run on two
different tables in the document.
 
If by the second option, you mean the second option from the first linke
then the tables are addressed by number i.e.
Set oTable = .Tables(1)
will access Table1
Set oTable = .Tables(2)
will access Table 2 etc

--
<>>< ><<> ><<> <>>< ><<> <>>< <>><<>
Graham Mayor - Word MVP

My web site www.gmayor.com

<>>< ><<> ><<> <>>< ><<> <>>< <>><<>
 
That did the trick. Thanks. I am, however, getting a Runtime error 4248
when I run it.
 
What changes *exactly* have you made to the posted code? Which line is
flagged as in error?

--
<>>< ><<> ><<> <>>< ><<> <>>< <>><<>
Graham Mayor - Word MVP

My web site www.gmayor.com

<>>< ><<> ><<> <>>< ><<> <>>< <>><<>
 

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

Back
Top