Hi all,
On the attached I have some tables. They can contain up to 20 values in the 2nd column, i.e. C4:C23 in the first table.
Once this data is produced, I have a code to name the ranges, which works when a table is the only table in a single sheet.
If I run the code below, it selected everything B2 downwards and gives it a name, which selected the two tables on the left.
Ultimately, I am looking to amend this code so that it does not select any blank columns, or where there are any errors in the cells - so for examplePlease Login or Register to view this content.
- with the first table it would select B2:G13.
- with the second table it would select I3:P23
- the third table (bottom left) it would select B25:G24
- the fourth table (bottom right) it would select I26:P46
Anyone have any ideas how to go about this?
Cheers,
Chris
Bookmarks