As the title explains, I have an Excel 2003 workbook and I’m copying a number of columns of one sheet to another in VBA. Unknown to me, someone has hidden a few columns on the source sheet and it has messed up how I process the cells in the destination sheet.
How can I programmically determine:
- IF there are hidden columns
- WHICH columns are hidden?
Thanks!
JFV
For a
Range, check theRange.Hiddenproperty.The following snippet from MSDN is a good example of how to hide/unhide a row/column:
You can also test the value with an
Ifstatement: