I have a worksheet labeled '2008'
what I want to do is if a variable (SelectedYear) = 2008 then execute the code above. I know i am missing the quotations required to reference the worksheets as![]()
Please Login or Register to view this content.
works fine. What would be the correct syntax to do what I am looking to do? I would like to structure it this way as I have many years worth of worksheets to code for this way and I am looking to reduce the number of Sheets("n") to code![]()
Please Login or Register to view this content.
Bookmarks