Advertisement

07.03.2008 at 08:31AM PDT, ID: 23537201
[x]
Attachment Details

Run time error 1004 unable to set hidden property

Asked by macwarwick in Microsoft Excel Spreadsheet Software

Tags: excel 2003

Hi Experts
I have enabled protection on a excel worksheet mainly so the tabs to move a number of cells to the next input field.
I am getting the following error now when I input some information
run time error '1004' unable to set hidden property of the range class
I have two hidden columns that change about depending on what I require the error stops me at
 Else
    Columns("E:E").Hidden = True
What can I do to correct this error and still have the worksheet protection on?
Start Free Trial
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
14:
15:
16:
17:
18:
19:
20:
21:
22:
23:
24:
25:
26:
27:
Private Sub Worksheet_Calculate()
Application.ScreenUpdating = False
 
Dim l As Long
 
If (Trim(Range("B6").Value) = "") Then
    Columns("F:F").Hidden = True
    Columns("E:E").Hidden = False
   For l = 7 To 8
  With Cells(l, 2)
      .EntireRow.Hidden = True
  End With
Next
    
Else
    Columns("E:E").Hidden = True
    Columns("F:F").Hidden = False
    
  For l = 7 To 8
  With Cells(l, 2)
      .EntireRow.Hidden = False
  End With
  Next
End If
 
Application.ScreenUpdating = True
End Sub
[+][-]07.03.2008 at 08:37AM PDT, ID: 21926510

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]07.03.2008 at 08:39AM PDT, ID: 21926528

View this solution now by starting your 7-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

 

About this solution

Zone: Microsoft Excel Spreadsheet Software
Tags: excel 2003
Sign Up Now!
Solution Provided By: saurabh726
Participating Experts: 4
Solution Grade: A
 
 
[+][-]07.03.2008 at 09:52AM PDT, ID: 21927202

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]07.03.2008 at 10:23AM PDT, ID: 21927437

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]07.03.2008 at 10:23AM PDT, ID: 21927440

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]07.03.2008 at 10:25AM PDT, ID: 21927452

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]07.04.2008 at 05:27AM PDT, ID: 21932687

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]07.04.2008 at 08:51AM PDT, ID: 21933708

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
 
Loading Advertisement...
20080716-EE-VQP-32 / EE_QW_2_20070628