Hi all,
I've been struggling with this code and was hoping someone here could take pity on me!
Background: I have a dropdown list of categories. When a category is chosen, it is set as the variable AreaName, and used to access a worksheet whose name is the content of the variable AreaName. I then want to use table data located on this sheet to generate a chart on another sheet, whose name should be "[AreaName] Pricing". I don't want to create a new sheet every time, I'd like to activate an existing chart, wipe out its series and replace it with the series from the AreaName sheet.
When I've named sheets in the past, it lets me do Name = variable & "text string" , but for some reason this code gives me a subscript out of range error:
Eventually I'm hoping to turn this into a function that will be activated whenever the cell range B2 is changed, if that matters.Please Login or Register to view this content.
Also, if anyone has a less ghetto way of finding the AreaName valuable in a designated column besides the Ctrl+F function, I'm all ears
Thanks in advance,
Renee
Moderator's Edit: Use code tags in code. To do so, select your code and click on the # symbol above.
Bookmarks