Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hello Everyone,
I just created a userform and it works great thanks to Toppers help. I just have two questions that might be simple for some of you to answer. 1: Is there a way to create a link in a cell that will launch the userform when the user is ready to use it? If so, could I get some info on that? I'm stuck n how to let the user interact with it. 2: In one of my comboboxs I have a range using the RowSource property. Is there a way to eliminate a few of the cells in that range so they don't appear in the combobox? FYI, the ones I want to eliminate from the combox still need to appear on the worksheet thought. They are spaces and sections titles. 3. Using the code below I have it setup where combobox1 must have data in it for the user to click the "Add" button. What would I have to alter in this code so combobox 2 and combobox3 also checks for a course number before they add data? Thanks in advance, Chris Code: Private Sub cmdAdd_Click() rowno = Columns(1).Find(Trim(ComboBox1.Value)).Row Range("C" & rowno).End(xlToLeft).Offset(0, 1) = ComboBox2.Value Range("D" & rowno).End(xlToLeft).Offset(0, 1) = ComboBox3.Value 'check for a course number If Trim(Me.ComboBox1.Value) = "" Then Me.ComboBox1.SetFocus MsgBox "Okay, this is not Rocket Science. Please select the course number and give it another shot. FYI, the questions get harder." Exit Sub End If 'clear the data Me.ComboBox1.Value = "" Me.ComboBox2.Value = "" Me.ComboBox3.Value = "" Me.ComboBox1.SetFocus End Sub -- Message posted via http://www.officekb.com |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
VBA userform questionS | Excel Discussion (Misc queries) | |||
Two UserForm Questions | Excel Programming | |||
Further Userform questions | Excel Programming | |||
Userform Questions | Excel Programming | |||
newbie with userform questions | Excel Programming |