+ Reply to Thread
Results 1 to 3 of 3

Inputbox and Sorting data

  1. #1
    Registered User
    Join Date
    06-26-2009
    Location
    O.o
    MS-Off Ver
    Excel 2003
    Posts
    64

    Inputbox and Sorting data

    Hi again everyone,

    I am having an issue whereby an inputbox appears twice to direct my macro to sort columns.

    What I am trying to do is ask the user for an single variable input corresponding to the column they wish to sort, ie. they select '1' then column one will sort, choosing '2' column to will sort, etc.

    Please Login or Register  to view this content.
    Do I need to set the inputbox as a variable?

    Any help is very appreciated! Thanks for your time.

  2. #2
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: Inputbox and Sorting data

    This is how I would sort the first 12 cells of the "input" column.
    Please Login or Register  to view this content.
    _________________
    Microsoft MVP 2010 - Excel
    Visit: Jerry Beaucaire's Excel Files & Macros

    If you've been given good help, use the icon below to give reputation feedback, it is appreciated.
    Always put your code between code tags. [CODE] your code here [/CODE]

    ?None of us is as good as all of us? - Ray Kroc
    ?Actually, I *am* a rocket scientist.? - JB (little ones count!)

  3. #3
    Registered User
    Join Date
    09-24-2008
    Location
    Eureka, Ca
    MS-Off Ver
    Office 2003
    Posts
    21

    Re: Inputbox and Sorting data

    Jerry,
    I found your code most useful to the problem I was having that was kind of related to this problem so with a bit of playing around with it to suit my needs I got it working as I wanted it to so this is a Thank You for the indirect help.

    Here's the link to my problem & the solution I came up with using your code.

    http://www.excelforum.com/excel-prog...ml#post2330950

    Best Wishes
    John

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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