Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 7
Default Userforms and Checkboxes

This is copied from a question i put in the discussion group excel general
which i think was the wrong group.Apoloies if this was ot the correct thing
to do

I am new to VBA and am trying to do the following, I have created the
Userform and check boxes but that is as far as i have got.

When a ceratin a cell e.g A1 goes to = red then a userform will pop up with
a list of check boxes e.g Nexus, G2, Swift, Crest if Nexus and Crest check
box is ticked then the word nexus will appear A2 and Crest in A3. Or if G2
and Swift were checked then G2 would be in cell A2 and Swift in cell C3.

Many Thanks

Simon Jelinek

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,123
Default Userforms and Checkboxes

hi Jelinek

Read this
http://support.microsoft.com/default...b;EN-US;829070

You can use a event in the sheet module to open the userform

See this page for more information
http://www.cpearson.com/excel/events.htm

Like this

Private Sub Worksheet_Change(ByVal Target As Range)
If Not Application.Intersect(Range("a1"), Target) Is Nothing Then
If Target.Value = "red" Then UserForm1.Show
End If
End Sub

You can add a button on your userform that check the value of the checkboxes

Private Sub CommandButton1_Click()
If Me.CheckBox1.Value = True Then Range("B1").Value = "Hi"
End Sub

If you need more help post back

--
Regards Ron de Bruin
http://www.rondebruin.nl


"Jelinek" wrote in message ...
This is copied from a question i put in the discussion group excel general
which i think was the wrong group.Apoloies if this was ot the correct thing
to do

I am new to VBA and am trying to do the following, I have created the
Userform and check boxes but that is as far as i have got.

When a ceratin a cell e.g A1 goes to = red then a userform will pop up with
a list of check boxes e.g Nexus, G2, Swift, Crest if Nexus and Crest check
box is ticked then the word nexus will appear A2 and Crest in A3. Or if G2
and Swift were checked then G2 would be in cell A2 and Swift in cell C3.

Many Thanks

Simon Jelinek



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
Help with Userforms Panagiotis Marantos Excel Discussion (Misc queries) 2 July 25th 06 04:26 PM
UserForms bennyob Excel Discussion (Misc queries) 4 November 7th 05 01:58 PM
checkboxes on userforms Mike[_49_] Excel Programming 1 January 18th 04 10:52 AM
Userforms Paul Clark Excel Programming 2 January 17th 04 04:51 PM
userforms Dave[_27_] Excel Programming 1 August 28th 03 06:25 PM


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