#1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 107
Default checkbox

hi
many a times we come across a msgbox
with check box on it labeled "do not show this msg agaon"
when we select the chek box this msg never appeared
what could be the code behind such checkbox?
please help
--
hemu

--
hemu
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default checkbox


I guess it is a simple flag where the status is stored between sessions

--
Mallyca
-----------------------------------------------------------------------
Mallycat's Profile: http://www.excelforum.com/member.php...fo&userid=3551
View this thread: http://www.excelforum.com/showthread.php?threadid=55531

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 107
Default checkbox

hi mallycat
in such cases form if loaded remains with code forever?
i mean when next time i run same macro will this form appear again?
--
hemu


"Mallycat" wrote:


I guess it is a simple flag where the status is stored between sessions.


--
Mallycat
------------------------------------------------------------------------
Mallycat's Profile: http://www.excelforum.com/member.php...o&userid=35514
View this thread: http://www.excelforum.com/showthread...hreadid=555310


  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 49
Default checkbox

- create a userform with the checkbox. Add this code:

Private Sub CheckBox1_Click()
Range("Sheet1!A1").Value = 1
End Sub

- Somewhere in your procedure
Sub test()
If Range("Sheet1!A1").Value = 1 Then
Exit Sub
Else
UserForm1.Show
End If
End Sub

That's it. Succes

"Hemant_india" schreef in bericht
...
hi mallycat
in such cases form if loaded remains with code forever?
i mean when next time i run same macro will this form appear again?
--
hemu


"Mallycat" wrote:


I guess it is a simple flag where the status is stored between sessions.


--
Mallycat
------------------------------------------------------------------------
Mallycat's Profile:
http://www.excelforum.com/member.php...o&userid=35514
View this thread:
http://www.excelforum.com/showthread...hreadid=555310




  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 49
Default checkbox

Should be:

Private Sub CheckBox1_Change()
If CheckBox1.Value = True Then
Range("Sheet1!A1").Value = 1
Else
Range("Sheet1!A1").Value = 0
End If
End Sub

"Hemant_india" schreef in bericht
...
hi
many a times we come across a msgbox
with check box on it labeled "do not show this msg agaon"
when we select the chek box this msg never appeared
what could be the code behind such checkbox?
please help
--
hemu

--
hemu





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 have Checkbox A uncheck with checked Checkbox B Texas Aggie Excel Discussion (Misc queries) 3 July 20th 07 10:58 PM
How do I link one checkbox to update another checkbox? Mike Excel Programming 3 April 28th 06 02:22 AM
checkbox on form reset from checkbox on sheet raw[_12_] Excel Programming 1 December 3rd 05 05:08 AM
Checkbox!! Oppy Excel Discussion (Misc queries) 2 October 14th 05 05:28 PM
checkbox help dok112[_25_] Excel Programming 1 August 12th 04 06:59 AM


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