Thanks, Jim. That works now.
As part of opening my workbook, I do a .CopyFromRecordset to a range
Then I name the range "rgUniqueStations". ( And I have Publi
rgUniqueStations As Range in the Declarations at the top of m
ThisWorkbook module.) My expectation was that I would use that range i
conjunction with .AddItem.
Jim, you declared another range:
Set rngList = Worksheets(1).Range("A1:A3181")
And used it in this code:
For lngN = 1 To 3181
cmdComBox.AddItem rngList(lngN).Value
Next
I tried substituting my range rgUniqueStations, but that didn't work a
all. My aim in doing that is to avoid hard coding the length of th
range (3181) because the number of stations in the list could chang
from time to time.
Anyway, thanks much for your help.
Bil
--
Bill_excelforu
-----------------------------------------------------------------------
Bill_excelforum's Profile:
http://www.excelforum.com/member.php...fo&userid=3228
View this thread:
http://www.excelforum.com/showthread.php?threadid=52691