I need a quick macro I can run to hide the columns if the formula result for cells B1:AA1 is "" (null) instead of text. This runs explicitly on Sheet2.
Array VBA is still geek to me, so any assistance is appreciated.
I need a quick macro I can run to hide the columns if the formula result for cells B1:AA1 is "" (null) instead of text. This runs explicitly on Sheet2.
Array VBA is still geek to me, so any assistance is appreciated.
Last edited by JBeaucaire; 12-28-2008 at 05:31 PM.
_________________
Microsoft MVP 2010 - Excel
Visit: Jerry Beaucaire's Excel Files & Macros
If you've been given good help, use the icon below to give reputation feedback, it is appreciated.
Always put your code between code tags. [CODE] your code here [/CODE]
?None of us is as good as all of us? - Ray Kroc
?Actually, I *am* a rocket scientist.? - JB (little ones count!)
Please Login or Register to view this content.
Entia non sunt multiplicanda sine necessitate
Ah, that looked sweet and simple, but isn't working. Here is a sample formula from a cell in that range:
S1 =iferror(LEFT('Data-Nov07-08'!AJ1,FIND(" ",'Data-Nov07-08'!AJ1)-1),"")
So, the cell is returning a "" value. Also, the sheet name might weird out, so I was hoping to use Sheets(2) to eliminate that problem.
I tried:
The actual sheetname is currently Chart-Nov07-08, but that will most likely vary and I'd like to step off of the actual sheetname.Please Login or Register to view this content.
Well, some more fiddling, and for some reason THIS version started working:
Thanks so much!Please Login or Register to view this content.
Sheets(2) is the second sheet in a workbook, counting chart sheets.
Worksheets(2) is the second worksheet in a workbook.
Sheet2 is a variable that exists iif there is a sheet with CodeName Sheet2.
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks