+ Reply to Thread
Results 1 to 5 of 5

Unique list maker with inputboxes with from and to

  1. #1
    Registered User
    Join Date
    12-05-2019
    Location
    Sweden
    MS-Off Ver
    2016
    Posts
    2

    Unique list maker with inputboxes with from and to

    Hi!

    I'm trying to get my macro:
    Please Login or Register  to view this content.
    to work where inputs are from 2 different inputboxes

    Input box A should be connected to "c = Range("A2:A" & lr)" as this is from where the non-unique values are and input box B should be connected to "Range("B2").Resize(d.Count) = Application.Transpose(d.keys)" which is where I want the output, but I can't get it to work as I'm not that familiar with macros with inputs from input boxes

    This is what I've tried but get errors from it
    Please Login or Register  to view this content.

  2. #2
    Forum Moderator davesexcel's Avatar
    Join Date
    02-19-2006
    Location
    Regina
    MS-Off Ver
    MS 365
    Posts
    13,481

    Re: Unique list maker with inputboxes with from and to

    you have rng1 & rng2 set as range variables, the are now just rng1 & rng2 not range(rng1)

    Please Login or Register  to view this content.

  3. #3
    Forum Expert WideBoyDixon's Avatar
    Join Date
    10-03-2016
    Location
    Sheffield, UK
    MS-Off Ver
    365
    Posts
    2,182

    Re: Unique list maker with inputboxes with from and to

    Try like this:

    Please Login or Register  to view this content.
    WBD
    Office 365 on Windows 11, looking for rep!

  4. #4
    Registered User
    Join Date
    12-05-2019
    Location
    Sweden
    MS-Off Ver
    2016
    Posts
    2

    Re: Unique list maker with inputboxes with from and to

    Quote Originally Posted by WideBoyDixon View Post
    Try like this:

    Please Login or Register  to view this content.
    WBD
    Thanks a lot, this solved my issue and you made the macro a bit smaller

  5. #5
    Forum Expert WideBoyDixon's Avatar
    Join Date
    10-03-2016
    Location
    Sheffield, UK
    MS-Off Ver
    365
    Posts
    2,182

    Re: Unique list maker with inputboxes with from and to

    No problem. Note that the original range you select doesn't have to be a single column; you can select multiple columns/rows if you like.

    WBD

+ 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. My List maker solution is missing some data from cells
    By EddieMcr in forum Excel General
    Replies: 9
    Last Post: 05-12-2015, 05:05 AM
  2. 3 Inputboxes macro
    By maax555 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 09-12-2014, 02:52 AM
  3. [SOLVED] Help needed for inputboxes for this below working code.
    By abjac in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 01-27-2013, 08:43 AM
  4. [SOLVED] Help .Need 2 inputboxes for working code
    By abjac in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 01-07-2013, 11:40 PM
  5. [SOLVED] Background timer to clear inputboxes
    By minifreak in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 08-27-2012, 10:47 AM
  6. InputBoxes 2 (or more) choices
    By VBANoob in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 01-28-2009, 11:40 AM
  7. InputBoxes
    By Sean in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 07-19-2006, 01:15 PM

Tags for this Thread

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