Sunny London
New Member
- Joined
- Sep 21, 2010
- Messages
- 29
I have up to 18 columns of data. The first row contains a VLOOKUP formula which returns a blank, 0, 1, 2, 3 etc up to 18. If there are only, say, 10 columns that I want to be visible, they will be numbered 1 - 10 and the other 8 columns will have either a blank or a 0 in the first row.
What is the VBA code that can look at the individual cells in the first row of the data and if it's a blank or 0 hide that column?
Thanks.
What is the VBA code that can look at the individual cells in the first row of the data and if it's a blank or 0 hide that column?
Thanks.