#1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 10
Default Any ideas?

The following code worked fine until I added checkboxes from the Control
Toolobox in cells from G3:O562:

Private Sub CommandButton1_Click()
' Start New Checklist Button

Sheets("sheet3").Range("a2:a21").Value = "FALSE"
Sheets("sheet3").Range("C2:C6").Value = "FALSE"
Sheets("Checklist").Rows("3:562").EntireRow.Hidden = True
Sheets("Checklist").Columns("g:o").EntireColumn.Hi dden = True
userform1.Hide
userform2.Show

End Sub

After adding the checkboxes, I get the following error:

Run-time error '-2147319765 (8002802b)':

Automation error
Element not found.

and the debugger takes me to this line:
Sheets("Checklist").Rows("3:562").EntireRow.Hidden = True

Anyone tell me what is going on and how to make this work?

Thanks for the assistance.
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 10
Default Any ideas?

Nevermind. The problem is too many checkboxes. I will post a new question.

"Solution4U" wrote:

The following code worked fine until I added checkboxes from the Control
Toolobox in cells from G3:O562:

Private Sub CommandButton1_Click()
' Start New Checklist Button

Sheets("sheet3").Range("a2:a21").Value = "FALSE"
Sheets("sheet3").Range("C2:C6").Value = "FALSE"
Sheets("Checklist").Rows("3:562").EntireRow.Hidden = True
Sheets("Checklist").Columns("g:o").EntireColumn.Hi dden = True
userform1.Hide
userform2.Show

End Sub

After adding the checkboxes, I get the following error:

Run-time error '-2147319765 (8002802b)':

Automation error
Element not found.

and the debugger takes me to this line:
Sheets("Checklist").Rows("3:562").EntireRow.Hidden = True

Anyone tell me what is going on and how to make this work?

Thanks for the assistance.

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
Anyone else have any ideas?? M&M[_2_] Excel Discussion (Misc queries) 3 August 11th 07 01:51 PM
Some ideas John21[_13_] Excel Programming 0 August 21st 06 06:31 PM
Any Ideas? Jimbo1[_10_] Excel Programming 1 April 20th 06 04:24 PM
Any Ideas? GAIL HORVATH Excel Worksheet Functions 2 May 30th 05 04:17 PM
Any Ideas Greg B Excel Discussion (Misc queries) 7 May 16th 05 03:41 AM


All times are GMT +1. The time now is 05:33 AM.

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"