LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #16   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 5,934
Default ComboBox problem

You are welcome... I'm glad you got it working.

--
Rick (MVP - Excel)


"Pats" wrote in message
...
Rick thanks for your time. I now have everything up and running. The
permission error was caused by the fact that I had a RowSouce defined for
the
ComboBox. Once I removed that it was all good.

Again thanks for yor time.



"ordnance1" wrote:

Thanks rick

Just a not I did find that I was able to get past the unspecifed error by
removing the ComboBox1.clear line, but now I get a permission error.

"Rick Rothstein" wrote:

I got it. I'm going out for a little while so I'll look at it this
evening
and get back to you.

--
Rick (MVP - Excel)


"Patrick C. Simonds" wrote in message
...
Sorry I had missed the . between rick and news


"Rick Rothstein" wrote in
message
...
It isn't there yet (15+ minutes now after you posted your message).
You
should have sent it to this address...

rick(dot)news(at)verizon(dot)net

where you would replace "(dot)" with a "." and "(at)" with "@"
(without
the quote marks, of course).

--
Rick (MVP - Excel)


"Patrick C. Simonds" wrote in message
...
Thanks Rick it should be in your e-mail.


"Rick Rothstein" wrote in
message
...
I'm not sure exactly what to tell you... I tested the code before
I
posted it, and I just tested the code as you modified it, and in
both
cases the code worked as intended.

Why don't you send me your Excel file so that I can look at
exactly
what your setup is... just remove the NO.SPAM parts from my email
address.

--
Rick (MVP - Excel)


"Patrick C. Simonds" wrote in message
...
I get a runtime error "unspecified error" but of course it does
not
tell me what caused the error.

I modified the code as you suggested (see code below). The
employee
list is located on the Employee List worksheet. The RB in this
case
refers to the Relief Board, column I is where that abbreviation
is
located.


Private Sub UserForm_Initialize()

Dim X As Long
Dim LastRow As Long

Const DataSheet As String = "Employee List"
Const GroupToFind As String = "RB"
Const NameColumn As String = "A"
Const GroupColumn As String = "I"

With Worksheets(DataSheet)
LastRow = .Cells(.Rows.Count, NameColumn).End(xlUp).Row
ComboBox1.Clear
For X = 2 To LastRow
If .Cells(X, GroupColumn).Value = GroupToFind Then
ComboBox1.AddItem .Cells(X, NameColumn).Value
End If
Next
End With

End Sub







 
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
ComboBox problem hoyos Excel Discussion (Misc queries) 4 December 10th 09 11:16 AM
ComboBox Problem Mark Dullingham Excel Programming 0 May 12th 06 04:36 AM
Combobox Problem blacktour Excel Programming 4 July 21st 05 12:35 PM
ComboBox Problem MBlake[_2_] Excel Programming 3 July 4th 05 09:11 PM
Combobox Problem Bob Phillips[_7_] Excel Programming 0 July 27th 04 06:28 PM


All times are GMT +1. The time now is 04:29 PM.

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"