Could someone please tell me how to reference another worksheet that is not the current and active worksheet? I'm sure its so simple...
I've assigned a macro to a button on sheet1 that calls a module to access data from sheet2...however, no matter what I try I cannot select the sheet2.
I'm creating a chart and therefore I need to get a data range from sheet2. I don't necessarily want to "activate" the sheet....if I don't have to.
I tried this but get a subscript out of range error...I do have a worksheet named "P01"
Dim mySheet As Worksheet
Set mySheet = Worksheets("P01"![Wink ;) ;)](data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7)
I've assigned a macro to a button on sheet1 that calls a module to access data from sheet2...however, no matter what I try I cannot select the sheet2.
I'm creating a chart and therefore I need to get a data range from sheet2. I don't necessarily want to "activate" the sheet....if I don't have to.
I tried this but get a subscript out of range error...I do have a worksheet named "P01"
Dim mySheet As Worksheet
Set mySheet = Worksheets("P01"