LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 33
Default Make a formula work with a checkbox

Hi,
I have a macro that hides and unhides a certain number of columns using a
checkbox. Now, I'm I want to create a formula in a cell that links to this
check box. In other words, if the checkbox is checked then I want the formula
to work one way, and if it's not checked then I want the formula to work
another way. This is the code:
Private Sub CheckBox1_Click()
If CheckBox1.Value = True Then
Sheets("Summary").Columns("AS:BD").EntireColumn.Hi dden = False
Else
Sheets("Summary").Columns("AS:BD").EntireColumn.Hi dden = True
End If

End Sub

Thanks
Miguel
 
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 make a formula work for the whole column claudia Excel Discussion (Misc queries) 6 August 11th 08 06:48 PM
Add to this formula to make it work jeannie v Excel Worksheet Functions 3 April 4th 08 03:03 PM
Can't make the division work in my formula jeannie v Excel Worksheet Functions 3 March 7th 08 06:18 PM
FORMULA FOR EXPERT, PLS MAKE THIS WORK Moh Excel Programming 3 June 16th 06 03:02 PM
FORMULA FOR EXPERT, PLS MAKE THIS WORK Blue Aardvark Excel Programming 0 June 15th 06 06:22 PM


All times are GMT +1. The time now is 08:30 AM.

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

About Us

"It's about Microsoft Excel"