Ashaman99
New Member
Hello,
I am trying to choose a sheet to read a cell(not the sheet that my macro button is on), then switch to a specific sheet based on that cell and then copy cells from that specific sheet to a third sheet in my workbook. The trouble I am having is that I cannot get the proper sheet to activate to read the data cell. It seems that the Active Sheet is "stuck" and all of these options below do not affect the ActiveSheet.Name value I see when I add that as a Watch.
Any of these should have set the ActiveSheet to "Data", but it stays on the sheet the button is on. Other Scripts in this workbook will switch between sheets properly, so I do not understand why this particular one is so grumpy.
(Sorry the Script is so cluttered, I was trying many options and have not cleaned up what is not needed, as I do not yet know what I need)
The attachment below shows the Watch items and the ActiveSheet.Name with the value of a different sheet then the above commands should have changed.
This is Module 3 and is tied to the button on the "DashBoard" sheet around A62.
I am trying to choose a sheet to read a cell(not the sheet that my macro button is on), then switch to a specific sheet based on that cell and then copy cells from that specific sheet to a third sheet in my workbook. The trouble I am having is that I cannot get the proper sheet to activate to read the data cell. It seems that the Active Sheet is "stuck" and all of these options below do not affect the ActiveSheet.Name value I see when I add that as a Watch.
Code:
Sheets(strDataSheet).Select Replace:=True
Sheet16.Select Replace:=False
Sheet16.Activate
ActiveWorkbook.Worksheets(strDataSheet).Select
Sheet16.Range("A14").Select
(Sorry the Script is so cluttered, I was trying many options and have not cleaned up what is not needed, as I do not yet know what I need)
The attachment below shows the Watch items and the ActiveSheet.Name with the value of a different sheet then the above commands should have changed.
This is Module 3 and is tied to the button on the "DashBoard" sheet around A62.