+ Reply to Thread
Results 1 to 2 of 2

Excluding certain columns from a named range while displaying in the Userform Listbox

  1. #1
    Registered User
    Join Date
    03-02-2017
    Location
    Dubai
    MS-Off Ver
    2010
    Posts
    1

    Excluding certain columns from a named range while displaying in the Userform Listbox

    Hi All,

    I have a data from Column A till Column H. Listbox in the Userform displays the data from a named range "AssessmentRecords" while I type in the textbox "txtID" which is the Column A. Currently, the listbox shows all the data from Column A:H. But I would like to show only Column A:A and relative Column G:H in the listbox.

    AssessmentRecords - =OFFSET(Assessment!$A$1,1,,COUNTA(Assessment!$A:$A),COUNTA(Assessment!$A$1:$H$1))

    Is there any option to create union of Column A:A and relative Column G:H as one named range and show in the Listbox together as one range? or exclude Column B:F in the Listbox?

    Thank you for the response.
    Much appreciated.

  2. #2
    Forum Guru
    Join Date
    08-15-2004
    Location
    Tokyo, Japan
    MS-Off Ver
    2013 O.365
    Posts
    22,545

    Re: Excluding certain columns from a named range while displaying in the Userform Listbox

    Easiest way is to hide unneeded columns by setting column width to 0...

    eg.
    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. [SOLVED] Dynamic Named Range instead of Table for data transfer to userform listbox
    By rakotonirinas in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 06-22-2019, 05:39 PM
  2. Listbox displaying named range B but Adding named range A to cell
    By ikkenieikke in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 02-05-2018, 02:27 PM
  3. [SOLVED] Used named range in listbox on userform
    By WilliamWu in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 10-09-2013, 08:04 AM
  4. [SOLVED] Populating Listbox in a Userform with a named range from another sheet
    By gruberm in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 04-02-2013, 06:48 AM
  5. [SOLVED] VBA: UserForm ListBox Column Headings RowSource = Named Range
    By Hudas in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 06-22-2012, 02:21 AM
  6. listbox populating on userform with named range
    By kmsoni in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 09-28-2011, 01:37 PM
  7. listbox populating on userform with named range
    By kmsoni in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 09-27-2011, 02:31 PM

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