I'm looking to see if any one has any code snippets to flag a condition where a Named range contains cells that merge outside the range itself. For example, I could have a named range for B1:F1 which is 5 columns, but in this case, let's say cell F1 is merged with G1. So these count as one cell.
The issue is that I use excel as a development platform for an online engine and the above condition causes issues. That condition is usually accidentally created, but it takes a lot of head scratching to find it.
It would work great if I could tell that the actual range is 6 columns, but the range.columns.count is reporting 5 . That would be good enough for me to generate an error message.
Any help is greatly appreciated!
The issue is that I use excel as a development platform for an online engine and the above condition causes issues. That condition is usually accidentally created, but it takes a lot of head scratching to find it.
It would work great if I could tell that the actual range is 6 columns, but the range.columns.count is reporting 5 . That would be good enough for me to generate an error message.
Any help is greatly appreciated!