Hi all!
I am trying to rename all the tables on a worksheet and understand that I need to use VBA to do so.. I'm not very experienced so I was wondering if I can get some help here. Basically the layout of the table is like this:
[TABLE="class: grid, width: 500"]
<tbody>[TR]
[TD]Name Part 1[/TD]
[TD]Name Part 2[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Column1[/TD]
[TD]Column2[/TD]
[TD]Column3[/TD]
[TD]Column4[/TD]
[TD]Column5[/TD]
[/TR]
[TR]
[TD]Row1
[/TD]
[TD]a[/TD]
[TD]a[/TD]
[TD]a[/TD]
[TD]a[/TD]
[/TR]
[TR]
[TD]Row2
[/TD]
[TD]a[/TD]
[TD]a[/TD]
[TD]a[/TD]
[TD]a[/TD]
[/TR]
</tbody>[/TABLE]
The bolded cells are part of one table object. The top row are not. Name Part 1 and Name Part 2 are dropdown lists and I'd like the name of the table object to automatically change whenever the Name Parts are updated, minus all spaces (for context, the worksheet will have multiple tables like this). In this example, the name of the table would be NamePart1NamePart2. Can I get help as to where to start or what the solution may look like?
Many thanks!
I am trying to rename all the tables on a worksheet and understand that I need to use VBA to do so.. I'm not very experienced so I was wondering if I can get some help here. Basically the layout of the table is like this:
[TABLE="class: grid, width: 500"]
<tbody>[TR]
[TD]Name Part 1[/TD]
[TD]Name Part 2[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Column1[/TD]
[TD]Column2[/TD]
[TD]Column3[/TD]
[TD]Column4[/TD]
[TD]Column5[/TD]
[/TR]
[TR]
[TD]Row1
[/TD]
[TD]a[/TD]
[TD]a[/TD]
[TD]a[/TD]
[TD]a[/TD]
[/TR]
[TR]
[TD]Row2
[/TD]
[TD]a[/TD]
[TD]a[/TD]
[TD]a[/TD]
[TD]a[/TD]
[/TR]
</tbody>[/TABLE]
The bolded cells are part of one table object. The top row are not. Name Part 1 and Name Part 2 are dropdown lists and I'd like the name of the table object to automatically change whenever the Name Parts are updated, minus all spaces (for context, the worksheet will have multiple tables like this). In this example, the name of the table would be NamePart1NamePart2. Can I get help as to where to start or what the solution may look like?
Many thanks!