![]() |
Unhide
I have this code
Sheets("Family Totals").Rows(5).Select Selection.EntireRow.Hidden = False Sheets("Extra Earned Income Methd 1").Select I get the runtime error 1004 select method of range class failed Can someone help me figure this out? Thanks Roxy |
Unhide
You can only select a range on a sheet that is active:
Sheets("family totals").select Sheets("Family Totals").Rows(5).Select Selection.EntireRow.Hidden = False But you don't need to select at all: Sheets("Family Totals").Rows(5).Hidden = False Roxy wrote: I have this code Sheets("Family Totals").Rows(5).Select Selection.EntireRow.Hidden = False Sheets("Extra Earned Income Methd 1").Select I get the runtime error 1004 select method of range class failed Can someone help me figure this out? Thanks Roxy -- Dave Peterson |
Unhide
Good deal, I will try this. Thanks for the speedy reply.
Have a good day! ~Roxy "Dave Peterson" wrote: You can only select a range on a sheet that is active: Sheets("family totals").select Sheets("Family Totals").Rows(5).Select Selection.EntireRow.Hidden = False But you don't need to select at all: Sheets("Family Totals").Rows(5).Hidden = False Roxy wrote: I have this code Sheets("Family Totals").Rows(5).Select Selection.EntireRow.Hidden = False Sheets("Extra Earned Income Methd 1").Select I get the runtime error 1004 select method of range class failed Can someone help me figure this out? Thanks Roxy -- Dave Peterson |
All times are GMT +1. The time now is 03:26 PM. |
Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com