+ Reply to Thread
Results 1 to 4 of 4

Rearrage columns based on user input

  1. #1
    Registered User
    Join Date
    04-12-2016
    Location
    Oklahoma, USA
    MS-Off Ver
    Office 2007-2010
    Posts
    30

    Rearrage columns based on user input

    I am interested in a macro that rearrange columns based on user input. I have several users that use different files but I need them all to work in one similar file. What I want to do is, with a click of a button, arrange the Result tab in the order that is shown on the Controls tab in row 4. So when you look at the results tab, you see 1 - 14. When you look at row 3 on the Controls tab you see the positions, and that I want to 13th column in position 1, 14th in position 2, 1st in position 3, etc. When the button is pressed, the columns should rearrange (keeping any formulas), such that the order of the number on the results tab match row 4 on the controls tab. The yellow cell is a changer cell for Team, so if I change that to like 10, or 211, or 30, and press the button, it will rearrange based on what that team wants.
    Attached Files Attached Files

  2. #2
    Forum Expert
    Join Date
    08-16-2015
    Location
    Antwerpen, Belgium
    MS-Off Ver
    2007-2016
    Posts
    2,380

    Re: Rearrage columns based on user input

    This 1 after button

    Please Login or Register  to view this content.
    Attached Files Attached Files

  3. #3
    Forum Expert
    Join Date
    12-24-2007
    Location
    Alsace - France
    MS-Off Ver
    MS 365 Office Suite
    Posts
    5,066

    Re: Rearrage columns based on user input

    Here a possibility
    Please Login or Register  to view this content.
    Attached Files Attached Files
    - Battle without fear gives no glory - Just try

  4. #4
    Registered User
    Join Date
    04-12-2016
    Location
    Oklahoma, USA
    MS-Off Ver
    Office 2007-2010
    Posts
    30

    Re: Rearrage columns based on user input

    Thanks for the help with this. I really appreciate it.

    I am getting a runtime error 13, type mismatch at:
    WkCol = Evaluate("=MATCH(" & Rg & "," & HR & ":" & HR & ",0)")

    Do you know what I might need to do to fix this?

+ 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] Formula to compare different values in different columns based on user input
    By duffer in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 09-15-2015, 05:25 AM
  2. [SOLVED] Looking for a Macro to Unhide Columns based on a User's Input
    By Candlelight in forum Excel Programming / VBA / Macros
    Replies: 10
    Last Post: 04-04-2014, 08:37 AM
  3. [SOLVED] Averaging a user input defined range based on values in columns
    By smit.etha in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 02-14-2014, 02:21 AM
  4. Data Input Form with number of line items based on user input
    By j_gideon in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 09-25-2013, 02:54 PM
  5. [SOLVED] Adding X Columns for user input based on value of one cell
    By reluctantresearch in forum Excel Programming / VBA / Macros
    Replies: 13
    Last Post: 09-25-2013, 01:50 PM
  6. [SOLVED]Hide Rows and Columns Based on User Input
    By thesteve in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 01-31-2013, 01:32 PM
  7. Using text box input to lookup number and replace based on user input into new column
    By harl3y412 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 11-28-2011, 03:15 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