+ Reply to Thread
Results 1 to 5 of 5

user form - data range

  1. #1
    Registered User
    Join Date
    01-11-2005
    Posts
    13

    user form - data range

    Hi,

    Instead of coding every possible AddItem for a List box, how do i set it on the user form to cover a range of data on a separate worksheet?

  2. #2
    Bob Phillips
    Guest

    Re: user form - data range

    Me.ListBox1.RowSource = Worksheets("Sheet1").Range("A1:A10").Address

    --

    HTH

    Bob Phillips

    (remove nothere from the email address if mailing direct)

    "sam1" <sam1.25cg5i_1143489044.4074@excelforum-nospam.com> wrote in message
    news:sam1.25cg5i_1143489044.4074@excelforum-nospam.com...
    >
    > Hi,
    >
    > Instead of coding every possible AddItem for a List box, how do i set
    > it on the user form to cover a range of data on a separate worksheet?
    >
    >
    > --
    > sam1
    > ------------------------------------------------------------------------
    > sam1's Profile:

    http://www.excelforum.com/member.php...o&userid=18280
    > View this thread: http://www.excelforum.com/showthread...hreadid=526857
    >




  3. #3
    Tom Ogilvy
    Guest

    Re: user form - data range

    If it is on a separate worksheet as stated, it requires a bit more

    Me.ListBox1.RowSource =
    Worksheets("Sheet1").Range("A1:A10").Address(External:=True)

    --
    Regards,
    Tom Ogilvy


    "Bob Phillips" wrote:

    > Me.ListBox1.RowSource = Worksheets("Sheet1").Range("A1:A10").Address
    >
    > --
    >
    > HTH
    >
    > Bob Phillips
    >
    > (remove nothere from the email address if mailing direct)
    >
    > "sam1" <sam1.25cg5i_1143489044.4074@excelforum-nospam.com> wrote in message
    > news:sam1.25cg5i_1143489044.4074@excelforum-nospam.com...
    > >
    > > Hi,
    > >
    > > Instead of coding every possible AddItem for a List box, how do i set
    > > it on the user form to cover a range of data on a separate worksheet?
    > >
    > >
    > > --
    > > sam1
    > > ------------------------------------------------------------------------
    > > sam1's Profile:

    > http://www.excelforum.com/member.php...o&userid=18280
    > > View this thread: http://www.excelforum.com/showthread...hreadid=526857
    > >

    >
    >
    >


  4. #4
    Registered User
    Join Date
    01-11-2005
    Posts
    13

    user form - data range

    Thanks for info, I'm tring to put Times in the combo box but when i select time values, they convert to numbers in the combobox, how do i keep the Time format?

  5. #5
    Tom Ogilvy
    Guest

    Re: user form - data range

    Private Sub Combobox1_Click()
    Combobox1.Value = format(Combobox1.Value,"hh:mm:ss")
    End sub

    --
    Regards,
    Tom Ogilvy


    "sam1" <sam1.25cioz_1143492302.6312@excelforum-nospam.com> wrote in message
    news:sam1.25cioz_1143492302.6312@excelforum-nospam.com...
    >
    > Thanks for info, I'm tring to put Times in the combo box but when i
    > select time values, they convert to numbers in the combobox, how do i
    > keep the Time format?
    >
    >
    > --
    > sam1
    > ------------------------------------------------------------------------
    > sam1's Profile:

    http://www.excelforum.com/member.php...o&userid=18280
    > View this thread: http://www.excelforum.com/showthread...hreadid=526857
    >




+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1