Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.word.docmanagement
|
|||
|
|||
Creating an "Add" button
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? |
#2
Posted to microsoft.public.word.docmanagement
|
|||
|
|||
Creating an "Add" button
There are two methods shown at http://www.gmayor.com/word_vba_examples.htm.
They insert an extra row on exit from the last field in the table, but could be easily modified to run from a button if preferred. See also http://www.gmayor.com/SelectFile.htm -- Graham Mayor - Word MVP My web site www.gmayor.com Word MVP web site http://word.mvps.org Richard wrote: 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? |
#3
Posted to microsoft.public.word.docmanagement
|
|||
|
|||
Creating an "Add" button
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. "Graham Mayor" wrote: There are two methods shown at http://www.gmayor.com/word_vba_examples.htm. They insert an extra row on exit from the last field in the table, but could be easily modified to run from a button if preferred. See also http://www.gmayor.com/SelectFile.htm -- Graham Mayor - Word MVP My web site www.gmayor.com Word MVP web site http://word.mvps.org Richard wrote: 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? |
#4
Posted to microsoft.public.word.docmanagement
|
|||
|
|||
Creating an "Add" button
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 Word MVP web site http://word.mvps.org Richard wrote: 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. "Graham Mayor" wrote: There are two methods shown at http://www.gmayor.com/word_vba_examples.htm. They insert an extra row on exit from the last field in the table, but could be easily modified to run from a button if preferred. See also http://www.gmayor.com/SelectFile.htm -- Graham Mayor - Word MVP My web site www.gmayor.com Word MVP web site http://word.mvps.org Richard wrote: 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? |
#5
Posted to microsoft.public.word.docmanagement
|
|||
|
|||
Creating an "Add" button
That did the trick. Thanks. I am, however, getting a Runtime error 4248
when I run it. "Graham Mayor" wrote: 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 Word MVP web site http://word.mvps.org Richard wrote: 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. "Graham Mayor" wrote: There are two methods shown at http://www.gmayor.com/word_vba_examples.htm. They insert an extra row on exit from the last field in the table, but could be easily modified to run from a button if preferred. See also http://www.gmayor.com/SelectFile.htm -- Graham Mayor - Word MVP My web site www.gmayor.com Word MVP web site http://word.mvps.org Richard wrote: 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? |
#6
Posted to microsoft.public.word.docmanagement
|
|||
|
|||
Creating an "Add" button
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 Word MVP web site http://word.mvps.org Richard wrote: That did the trick. Thanks. I am, however, getting a Runtime error 4248 when I run it. "Graham Mayor" wrote: 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 Word MVP web site http://word.mvps.org Richard wrote: 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. "Graham Mayor" wrote: There are two methods shown at http://www.gmayor.com/word_vba_examples.htm. They insert an extra row on exit from the last field in the table, but could be easily modified to run from a button if preferred. See also http://www.gmayor.com/SelectFile.htm -- Graham Mayor - Word MVP My web site www.gmayor.com Word MVP web site http://word.mvps.org Richard wrote: 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? |
Reply |
Thread Tools | |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
I want idMso for "Mailing" Tab button to add this button in custom ribbon tab | Microsoft Word Help | |||
I want idMso for "Mailing" Tab button to add this button in custom ribbon tab | New Users | |||
Word Forms (2003) - creating a "click here to SAVE" button | Microsoft Word Help | |||
Creating a "print current page" macro or button | Microsoft Word Help | |||
creating a "word" version of the lotus wordpro "smartmaster" | Microsoft Word Help |