|
-
Oct 30th, 2002, 05:46 PM
#1
Thread Starter
Member
Simple code, But whats wrong with it? <Resolved>
Can anyone help me here, i am trying to populate a combobox from excel using a range of numbers. I have the below code, however the list is not populating, and i know this is possible, just maybe not the way i'm doing it.
I just want it populated at runtime, so the user can select from the info contained in it.
'appExcel.Workbooks.Open FileName:="C:\Program Files\LFhost\Maccrystal01.xls"
appExcel.Worksheets("dblisting").Select
cmbbx.AddItem = appExcel.Range("a1:a255")
Additonally, is there a way to stop it from duplicating items? they can occur up to 19 times each. I only want a list of one of each value.
As always help is alway appreciated.
M
Last edited by Morpheus; Oct 31st, 2002 at 10:03 PM.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|