Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.programming
|
|||
|
|||
read from hidden sheet
I am trying to read data from a hidden sheet in vba.
If i have a sheet "test1" that is visible. and "test2" which is hidden. in my code i say sheets("test2").Activate in the watches window Excel.ActiveSheet.Name = test2 on the next statment I execute the sheet switches back to test1 Excel.ActiveSheet.Name = test1 is there some trick? do i have to make the sheet visible? thanks |
#2
Posted to microsoft.public.excel.programming
|
|||
|
|||
read from hidden sheet
Hi
You don't have to active a sheet to read values from the sheet. Dim Sh2 as Worksheet Set Sh2=Worksheets("test2") MyVal=sh2.Range("A1").value Hopes this helps. --- Per On 6 Maj, 22:48, "greg" wrote: I am trying to read data from a hidden sheet in vba. If i have a sheet "test1" that is visible. *and "test2" which is hidden.. in my code i say sheets("test2").Activate in the watches window Excel.ActiveSheet.Name = test2 on the next statment I execute the sheet switches back to test1 Excel.ActiveSheet.Name = test1 is there some trick? do i have to make the sheet visible? thanks |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
enable re-code to re-read on re-hidden columns, if can be possible | Excel Discussion (Misc queries) | |||
Read only access for hidden sheet | Excel Programming | |||
create a formula in one sheet that would read data from separate sheet automatically | Excel Discussion (Misc queries) | |||
I need my Hidden Rows to stay hidden when I print the sheet. | Excel Discussion (Misc queries) | |||
Saving hidden data with a worksheet (preferably without using a hidden sheet) | Excel Programming |