Consulting

Results 1 to 7 of 7

Thread: Viewing a range of cells in Excel on a User Form

  1. #1

    Viewing a range of cells in Excel on a User Form

    How do I view a range of cells on a User form? I have a range of cells A3:J18 and all I want to do is view them on a user form. One more question will these values update on the user form as they update on the Excel page?

  2. #2
    Distinguished Lord of VBAX VBAX Grand Master Bob Phillips's Avatar
    Joined
    Apr 2005
    Posts
    25,453
    Location
    Probably best to step back a few paces and explain what you are trying to do.
    ____________________________________________
    Nihil simul inventum est et perfectum

    Abusus non tollit usum

    Last night I dreamed of a small consolation enjoyed only by the blind: Nobody knows the trouble I've not seen!
    James Thurber

  3. #3
    Moderator VBAX Wizard lucas's Avatar
    Joined
    Jun 2004
    Location
    Tulsa, Oklahoma
    Posts
    7,323
    Location
    populates a listbox named SelectHotels on the userform with values from Column A of sheet PropList
    [VBA]Private Sub UserForm_Initialize()
    With Sheets("PropList")
    SelectHotels.List = Range(.Cells(1, 1), .Cells(1, 1).End(xlDown)).Value
    End With
    End Sub
    [/VBA]
    It will update each time the userform is opened.
    Steve
    "Nearly all men can stand adversity, but if you want to test a man's character, give him power."
    -Abraham Lincoln

  4. #4
    Moderator VBAX Wizard lucas's Avatar
    Joined
    Jun 2004
    Location
    Tulsa, Oklahoma
    Posts
    7,323
    Location
    Yeah Bob, I missed the part about multicolumn......
    Steve
    "Nearly all men can stand adversity, but if you want to test a man's character, give him power."
    -Abraham Lincoln

  5. #5

    Viewing a range

    I am trying to set up a User form where a production associate is entering in data to the form. I have several tabs on the user form and I was trying to allow the production associate to view a querie in excel so he can determine the amount of parts to run to complete the batch.

  6. #6
    Distinguished Lord of VBAX VBAX Grand Master Bob Phillips's Avatar
    Joined
    Apr 2005
    Posts
    25,453
    Location
    Personally, that adds nothing to my knowledge.

    Tell us about the worksheet, the layout, the data. Tell us about the process, what the user will do. Tell us about the layout of theinfo, the data.
    ____________________________________________
    Nihil simul inventum est et perfectum

    Abusus non tollit usum

    Last night I dreamed of a small consolation enjoyed only by the blind: Nobody knows the trouble I've not seen!
    James Thurber

  7. #7
    VBAX Expert Dave's Avatar
    Joined
    Mar 2005
    Posts
    835
    Location
    Jaafar's frame control on a userform works very well if you just need to view a range on a userform. To update the "picture" of the range on the userform just re-run the procedure. HTH. Dave
    http://www.mrexcel.com/forum/showthread.php?t=176704

Posting Permissions

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