Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 88
Default Clear a Checkbox in a a user form

I am new to creating user forms so forgive me if this is really basic. I
have a checkbox that when clicked opens a new user form to get more details
for this product. I am trying to make it so if the user picks the "Cancel"
command it unloads the detail page and also clears the checkbox on the
original user form. How do I go about this? Thanks for any help on this in
advance.
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 3,942
Default Clear a Checkbox in a a user form

hi
check boxes are boolean.
in the code that unloads the detail page, add this..
if checkbox1= true then
checkbox1 = false
end if
this will clear the check from the box.

Regards
FSt1

"Cerberus" wrote:

I am new to creating user forms so forgive me if this is really basic. I
have a checkbox that when clicked opens a new user form to get more details
for this product. I am trying to make it so if the user picks the "Cancel"
command it unloads the detail page and also clears the checkbox on the
original user form. How do I go about this? Thanks for any help on this in
advance.

  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 88
Default Clear a Checkbox in a a user form

I tried that code but I may have done something wrong. I put this in

Private Sub CommandNOKEXT_Click()
If CheckExtension = True Then
CheckExtension = False
End If
Unload Extensions
End Sub

and I also tried it withe the Unload Extensions first but I still have the
checkbox marked.

"FSt1" wrote:

hi
check boxes are boolean.
in the code that unloads the detail page, add this..
if checkbox1= true then
checkbox1 = false
end if
this will clear the check from the box.

Regards
FSt1

"Cerberus" wrote:

I am new to creating user forms so forgive me if this is really basic. I
have a checkbox that when clicked opens a new user form to get more details
for this product. I am trying to make it so if the user picks the "Cancel"
command it unloads the detail page and also clears the checkbox on the
original user form. How do I go about this? Thanks for any help on this in
advance.

  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 35,218
Default Clear a Checkbox in a a user form

Make sure you refer to the right CheckExtension checkbox. Qualify it by the
userform name:

Private Sub CommandNOKEXT_Click()

'just uncheck it
userform1.CheckExtension = False

Unload Me 'Extensions

'show the original userform????
userform1.show '????
End Sub

Cerberus wrote:

I tried that code but I may have done something wrong. I put this in

Private Sub CommandNOKEXT_Click()
If CheckExtension = True Then
CheckExtension = False
End If
Unload Extensions
End Sub

and I also tried it withe the Unload Extensions first but I still have the
checkbox marked.

"FSt1" wrote:

hi
check boxes are boolean.
in the code that unloads the detail page, add this..
if checkbox1= true then
checkbox1 = false
end if
this will clear the check from the box.

Regards
FSt1

"Cerberus" wrote:

I am new to creating user forms so forgive me if this is really basic. I
have a checkbox that when clicked opens a new user form to get more details
for this product. I am trying to make it so if the user picks the "Cancel"
command it unloads the detail page and also clears the checkbox on the
original user form. How do I go about this? Thanks for any help on this in
advance.


--

Dave Peterson
  #5   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 3,942
Default Clear a Checkbox in a a user form

hi
did you reference the other form????
Private Sub CommandNOKEXT_Click()
If Userform1.CheckExtension = True Then
Userform1.CheckExtension = False
End If
Unload Extensions
End Sub

otherwise the code may think your talking about the current userform. maybe
i didn't make that clear.

Regards
FSt1


"Cerberus" wrote:

I tried that code but I may have done something wrong. I put this in

Private Sub CommandNOKEXT_Click()
If CheckExtension = True Then
CheckExtension = False
End If
Unload Extensions
End Sub

and I also tried it withe the Unload Extensions first but I still have the
checkbox marked.

"FSt1" wrote:

hi
check boxes are boolean.
in the code that unloads the detail page, add this..
if checkbox1= true then
checkbox1 = false
end if
this will clear the check from the box.

Regards
FSt1

"Cerberus" wrote:

I am new to creating user forms so forgive me if this is really basic. I
have a checkbox that when clicked opens a new user form to get more details
for this product. I am trying to make it so if the user picks the "Cancel"
command it unloads the detail page and also clears the checkbox on the
original user form. How do I go about this? Thanks for any help on this in
advance.



  #6   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 88
Default Clear a Checkbox in a a user form

If I wasn't so new at it and/or I wasn't a little slow on the up-take, you
were clear. Thanks for your help.

"FSt1" wrote:

hi
did you reference the other form????
Private Sub CommandNOKEXT_Click()
If Userform1.CheckExtension = True Then
Userform1.CheckExtension = False
End If
Unload Extensions
End Sub

otherwise the code may think your talking about the current userform. maybe
i didn't make that clear.

Regards
FSt1


"Cerberus" wrote:

I tried that code but I may have done something wrong. I put this in

Private Sub CommandNOKEXT_Click()
If CheckExtension = True Then
CheckExtension = False
End If
Unload Extensions
End Sub

and I also tried it withe the Unload Extensions first but I still have the
checkbox marked.

"FSt1" wrote:

hi
check boxes are boolean.
in the code that unloads the detail page, add this..
if checkbox1= true then
checkbox1 = false
end if
this will clear the check from the box.

Regards
FSt1

"Cerberus" wrote:

I am new to creating user forms so forgive me if this is really basic. I
have a checkbox that when clicked opens a new user form to get more details
for this product. I am trying to make it so if the user picks the "Cancel"
command it unloads the detail page and also clears the checkbox on the
original user form. How do I go about this? Thanks for any help on this in
advance.

  #7   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 3,942
Default Clear a Checkbox in a a user form

glad i could help.
regards
FSt1

"Cerberus" wrote:

If I wasn't so new at it and/or I wasn't a little slow on the up-take, you
were clear. Thanks for your help.

"FSt1" wrote:

hi
did you reference the other form????
Private Sub CommandNOKEXT_Click()
If Userform1.CheckExtension = True Then
Userform1.CheckExtension = False
End If
Unload Extensions
End Sub

otherwise the code may think your talking about the current userform. maybe
i didn't make that clear.

Regards
FSt1


"Cerberus" wrote:

I tried that code but I may have done something wrong. I put this in

Private Sub CommandNOKEXT_Click()
If CheckExtension = True Then
CheckExtension = False
End If
Unload Extensions
End Sub

and I also tried it withe the Unload Extensions first but I still have the
checkbox marked.

"FSt1" wrote:

hi
check boxes are boolean.
in the code that unloads the detail page, add this..
if checkbox1= true then
checkbox1 = false
end if
this will clear the check from the box.

Regards
FSt1

"Cerberus" wrote:

I am new to creating user forms so forgive me if this is really basic. I
have a checkbox that when clicked opens a new user form to get more details
for this product. I am trying to make it so if the user picks the "Cancel"
command it unloads the detail page and also clears the checkbox on the
original user form. How do I go about this? Thanks for any help on this in
advance.

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
clear specific cells in a form vdmbqb Excel Discussion (Misc queries) 1 November 24th 07 08:07 PM
How do I fill a cell in a user form from a selection on same form? Terry Tipsy Excel Discussion (Misc queries) 4 June 11th 07 02:59 PM
Form CheckBox font size / style tikchye_oldLearner57 Excel Discussion (Misc queries) 2 March 15th 07 01:34 AM
How do I make a checkbox bigger in an excel form? tscyw8 Excel Discussion (Misc queries) 0 February 7th 06 10:22 PM
Button to clear user worksheet Jonibenj Excel Discussion (Misc queries) 4 September 26th 05 11:40 PM


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