Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3
Default Checking the Value of a Check Box in a Macro

I have a macro that hides a named range on rows. I also have a check box.
If the check box is checked I want an error message to display and tell the
user to clear the check boxes before teh rows will hide.

'
' Hide Spec_Plu_22_10_00
'
Sub Hide_Spec_Plu_22_10_00()
'Unprotect Time Sheet
ActiveSheet.Unprotect
If CheckBox135 = True Then
MsgBox "Uncheck boxes in spec section your trying to close.",
vbInformation, "Alert Message"
GoTo 300
Else
GoTo 200
End If
'Hide Rows
200 Range("Plu_22_10_00").Select
Selection.EntireRow.Hidden = True
'Protect On
ActiveSheet.Protect DrawingObjects:=True, Contents:=True, Scenarios _
:=True
300 End Sub
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
How to Start a Macro by physically checking a check box? Mr Imnotabrainsurgeon Excel Discussion (Misc queries) 3 September 24th 09 09:11 PM
Check Box checking Steve Excel Programming 8 May 31st 08 10:57 PM
macro checking Stan Halls Excel Worksheet Functions 1 December 28th 07 01:48 PM
Checking macro merry_fay Excel Discussion (Misc queries) 4 December 12th 07 04:42 PM
Why does spelling check close Excel when checking spanish? RCP Excel Discussion (Misc queries) 2 December 4th 04 07:37 PM


All times are GMT +1. The time now is 10:16 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"