Hi
This is driving me nuts. I have a spreadsheet with input values on one sheet. Depending on the value chosen, it will hide/unhide rows on another sheet.
To be "more efficient" I have tried to name ranges in Excel for the cells that hold the input values (because I use this as a template and if I need to change things slightly I don't have to go back into the code to try and find all the references for the input values... so it was supposed to save time... )
But for whatever reason, I can't seem to get the code to even pass the value... tried setting it as Dim i as Range, or Dim i as Interger and neither worked.
I'm sure it's something very small I'm doing wrong.
Original Code (stating exact cell address) - works fine, I just want to change the "Cells(14,3)" for example to the named cell "Life"... Cells(17, 3) is "LTD".....
I get Object Variable or With Block variable not set if I just change to![]()
Please Login or Register to view this content.
I've tried searching internet etc, can't find similar code... any simple ideas?![]()
Please Login or Register to view this content.
Bookmarks