+ Reply to Thread
Results 1 to 4 of 4

Display Range in Userform

  1. #1
    Forum Contributor
    Join Date
    08-14-2016
    Location
    Warrington, England
    MS-Off Ver
    MS 365
    Posts
    174

    Display Range in Userform

    Hi all, I have a button which when pressed opens a blank user form. I want to get that userform to display a range of cells on a sheet called ‘Mini’ and the range is B3:AR17.

    Is it possible to get a userform to display a range and if so how would I go about doing this?

  2. #2
    Forum Expert Logit's Avatar
    Join Date
    12-23-2012
    Location
    North Carolina
    MS-Off Ver
    Excel 2019 Professional Plus - 2007 Enterprise
    Posts
    7,442

    Re: Display Range in Userform

    .
    https://www.linkedin.com/pulse/how-v...assann-daphal/

    However, I don't recall the max # of columns a ListBox can display ... that many columns may exceed the max.
    You may need to break down the range into smaller segments and display each in its own ListBox.

  3. #3
    Forum Expert Arkadi's Avatar
    Join Date
    02-13-2014
    Location
    Smiths Falls, Ontario, Canada
    MS-Off Ver
    Office 365
    Posts
    5,059

    Re: Display Range in Userform

    Duplicate...
    Please help by:

    Marking threads as closed once your issue is resolved. How? The Thread Tools at the top
    Any reputation (*) points appreciated. Not just by me, but by all those helping, so if you found someone's input useful, please take a second to click the * at the bottom left to let them know

    There are 10 kinds of people in this world... those who understand binary, and those who don't.

  4. #4
    Forum Expert Arkadi's Avatar
    Join Date
    02-13-2014
    Location
    Smiths Falls, Ontario, Canada
    MS-Off Ver
    Office 365
    Posts
    5,059

    Re: Display Range in Userform

    A listbox is a good idea for this as Logit suggested.

    The max number of columns in a listbox is not known to me, but it should be no problem in this case. The AddItem method would limit you to 10, but using the rowsource property should work fine. Something like this in the UserForm Initialize code ought to work. Just adapt the sheet name and ListBox name.

    Please Login or Register  to view this content.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Replies: 2
    Last Post: 05-24-2016, 05:27 AM
  2. [SOLVED] Userform to search worksheet and display data back to the userform
    By zip247 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 04-05-2015, 05:46 AM
  3. Display changes values in userform listbox from range with VBA
    By FlyingMouse in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 08-24-2014, 10:49 PM
  4. UserForm help - display list of open workbooks except workbook userform code is in
    By kensweep in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 01-09-2014, 12:26 PM
  5. Display a range of cells in a userform
    By prestopr in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 04-14-2013, 09:42 AM
  6. Display a UserForm based on Data selected in another UserForm's ListBox
    By RPhilbin83 in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 07-26-2011, 11:35 AM
  7. Display the value of a cell or range in Userform
    By CobraLAD in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 07-26-2007, 12:44 AM

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