Results 1 to 11 of 11

Thread: Simple code, But whats wrong with it? <Resolved>

Threaded View

  1. #1

    Thread Starter
    Member
    Join Date
    Aug 2000
    Posts
    52

    Unhappy 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
  •  



Click Here to Expand Forum to Full Width