+ Reply to Thread
Results 1 to 5 of 5

Dynamic Named Range instead of Table for data transfer to userform listbox

  1. #1
    Forum Contributor
    Join Date
    09-02-2013
    Location
    London
    MS-Off Ver
    Excel 2019
    Posts
    368

    Dynamic Named Range instead of Table for data transfer to userform listbox

    Hello,
    I'm trying to transfer the full data content of a worksheet to a userform listbox by keeping the format as it is on the worksheet.
    When the data is converted into table, then I managed to do it with the following code.
    Please Login or Register  to view this content.
    Would it be possible to get the same end result but by using a dynamic named range instead? - That is because the data itself will be created through another userform to which it will look for the last non empty row and paste new entry in the next row. However, when the data is formatted to table, it will consider the table as a non-empty row so therefore paste only new entry next to the very end of the table.

    Thank you for your help.

    Solo
    Last edited by rakotonirinas; 06-21-2019 at 07:38 PM.

  2. #2
    Forum Moderator Leith Ross's Avatar
    Join Date
    01-15-2005
    Location
    San Francisco, Ca
    MS-Off Ver
    2000, 2003, & 2010
    Posts
    23,258

    Re: Dynamic Named Range instead of Table for data transfer to userform listbox

    Hello solo,

    Try something like...
    Please Login or Register  to view this content.
    Change "MyNamedRange" to the name of your named range.
    Sincerely,
    Leith Ross

    Remember To Do the Following....

    1. Use code tags. Place [CODE] before the first line of code and [/CODE] after the last line of code.
    2. Thank those who have helped you by clicking the Star below the post.
    3. Please mark your post [SOLVED] if it has been answered satisfactorily.


    Old Scottish Proverb...
    Luathaid gu deanamh maille! (Rushing causes delays!)

  3. #3
    Forum Contributor
    Join Date
    09-02-2013
    Location
    London
    MS-Off Ver
    Excel 2019
    Posts
    368

    Re: Dynamic Named Range instead of Table for data transfer to userform listbox

    Thanks Leith,
    Should I also change this one to the same as the .List
    Please Login or Register  to view this content.
    ?

  4. #4
    Forum Moderator Leith Ross's Avatar
    Join Date
    01-15-2005
    Location
    San Francisco, Ca
    MS-Off Ver
    2000, 2003, & 2010
    Posts
    23,258

    Re: Dynamic Named Range instead of Table for data transfer to userform listbox

    Hello solo,

    You need to use the named range again like this...

    Please Login or Register  to view this content.
    You can also assign it to an object variable to make it easier to read...
    Please Login or Register  to view this content.

  5. #5
    Forum Contributor
    Join Date
    09-02-2013
    Location
    London
    MS-Off Ver
    Excel 2019
    Posts
    368

    Re: Dynamic Named Range instead of Table for data transfer to userform listbox

    Much appreciated Leith, I think this has done it. Thank you

+ 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. Set ListBox RowSource to a Offset Dynamic Named Range
    By bunjake in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 06-22-2017, 12:18 PM
  2. change cell values of named dynamic range in transfer
    By HeyInKy in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 10-07-2014, 04:44 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. Transfer Data From One Userform Listbox to Another Userform Listbox with 11 columns
    By sparkoft in forum Excel Programming / VBA / Macros
    Replies: 16
    Last Post: 05-18-2013, 10:54 AM
  5. 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
  6. 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
  7. transfer data from one named range to another via a userform
    By jpruffle in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 05-09-2009, 05:32 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