Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 10
Default Is there something wrong with this?

I keep getting an error and the debugger takes me to this line:

Sheets("Checklist").Rows("3:42").EntireRow.Hidden = True

The error is this:

"Unable to set the Hidden property of the Range class"

What am I missing here?
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,058
Default Is there something wrong with this?

The line of code works.

Might be a protection problem or a spelling problem with the tab name.
--
Gary''s Student - gsnu200806


"Solution4U" wrote:

I keep getting an error and the debugger takes me to this line:

Sheets("Checklist").Rows("3:42").EntireRow.Hidden = True

The error is this:

"Unable to set the Hidden property of the Range class"

What am I missing here?

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 9
Default Is there something wrong with this?

Another thing on top of Gary's suggestion is the worksheet may be in another
workbook? if so you will have to "Workbooks("MyOtherBook").activate if its
open.
--
Regards,
The Code Cage Team
www.thecodecage.com/forumz


"Gary''s Student" wrote:

The line of code works.

Might be a protection problem or a spelling problem with the tab name.
--
Gary''s Student - gsnu200806


"Solution4U" wrote:

I keep getting an error and the debugger takes me to this line:

Sheets("Checklist").Rows("3:42").EntireRow.Hidden = True

The error is this:

"Unable to set the Hidden property of the Range class"

What am I missing here?

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Insert Calculated Field (wrong Qty*Price = wrong Amount) Edmund Excel Discussion (Misc queries) 8 October 4th 07 12:13 PM
not sure what is wrong Alex H Excel Worksheet Functions 7 January 16th 07 08:27 PM
Where am I going wrong? Sarah_Lecturer Excel Programming 2 May 11th 06 05:16 PM
What am I doing wrong? sgl Excel Programming 2 October 5th 05 12:25 PM
What is wrong?? willroy[_2_] Excel Programming 1 December 12th 03 01:33 PM


All times are GMT +1. The time now is 03:19 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"