![]() |
|
#25
|
||||
|
||||
|
To work with variable tables throughout, the code should always reference lTbl. During development, I only partially did that (and lRow). The problem code line, originally coded as:
Set Rng = .Tables(2).Cell(3, 2).Range should be coded as: Set Rng = .Tables(lTbl).Cell(lRow, 2).Range If you want to implement the same kind of row adding etc. in table 9b as I did for table 9a, you'll need to split the Nomenclature & lb data into separate columns, just as I did for table 9a. The problem isn't one of merged cells (you don't have any in those tables) but of simplifying the coding for the weights of the optional materiel. Indeed, my implementation of table 9a has merged cells where yours didn't (compare the first & second rows).
__________________
Cheers, Paul Edstein [Fmr MS MVP - Word] |
| Tags |
| calculating values, expanding table, form fields |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Macro to keep formatted form fields after mail merge or replace text with formatted form fields | jer85 | Word VBA | 2 | 04-05-2015 10:00 PM |
Tables with form fields
|
step10 | Word | 18 | 11-12-2013 02:27 PM |
| Enable editing in expanding fields | marweste | Word | 11 | 10-21-2013 07:41 AM |
| How to prevent Tables from expanding | HappyFingers | Word | 1 | 11-29-2010 01:54 PM |
| Calculating Form Fields in Microsoft Word | wubba80 | Word | 1 | 06-25-2010 12:42 AM |