+ Reply to Thread
Results 1 to 14 of 14

Using a Command Buttons to Prioritize a Range

  1. #1
    Registered User
    Join Date
    02-11-2009
    Location
    USA
    MS-Off Ver
    Excel 2003
    Posts
    93

    Using a Command Buttons to Prioritize a Range

    Does anyway to use a scroll bar to priortize a selected range?

    I have included a simple example that I would like to rearrange with a scroll bar.

    For example, I would want be able to select one row in the range and then place it either above the current position or any where in that range.
    Attached Files Attached Files
    Last edited by siamadu; 03-06-2009 at 12:58 PM.

  2. #2
    Registered User
    Join Date
    02-11-2009
    Location
    USA
    MS-Off Ver
    Excel 2003
    Posts
    93

    re: Using a Command Buttons to Prioritize a Range

    Any ideas?
    Last edited by siamadu; 03-04-2009 at 11:05 AM.

  3. #3
    Registered User
    Join Date
    02-11-2009
    Location
    USA
    MS-Off Ver
    Excel 2003
    Posts
    93

    re: Using a Command Button to Prioritize a Range

    Please see attachement
    Last edited by siamadu; 03-04-2009 at 11:05 AM.

  4. #4
    Forum Expert mikerickson's Avatar
    Join Date
    03-30-2007
    Location
    Davis CA
    MS-Off Ver
    Excel 2011
    Posts
    6,229

    Re: Using a Scroll Bar to Prioritize a Range

    This uses two command buttons rather than the scroll bar.
    Please Login or Register  to view this content.
    Attached Files Attached Files
    _
    ...How to Cross-post politely...
    ..Wrap code by selecting the code and clicking the # or read this. Thank you.

  5. #5
    Registered User
    Join Date
    02-11-2009
    Location
    USA
    MS-Off Ver
    Excel 2003
    Posts
    93

    Smile Re: Using a Command Button to Prioritize a Range

    I just took a quite look at your example and that is exact what I need. That should do the trick. I will try to incorporate with into my spreadsheet and let you know if I have any problems with transferring the code.

    Thanks so much!!! You are a life saver!!!
    Last edited by siamadu; 03-04-2009 at 11:06 AM.

  6. #6
    Registered User
    Join Date
    02-11-2009
    Location
    USA
    MS-Off Ver
    Excel 2003
    Posts
    93

    Question Re: Using a Command Button to Prioritize a Range

    I tried to modify the code the select a certain range of cells to move up and move down, but it keeps givening me an error message. The Range that I included in the code below, is the range I would like the select and than priortize with the two command buttons.

    Please Login or Register  to view this content.
    Last edited by siamadu; 03-04-2009 at 11:07 AM.

  7. #7
    Forum Expert mikerickson's Avatar
    Join Date
    03-30-2007
    Location
    Davis CA
    MS-Off Ver
    Excel 2011
    Posts
    6,229

    Re: Using a Scroll Bar to Prioritize a Range

    You're code worked for me.
    What error are you getting?
    Is the sheet protected?

  8. #8
    Registered User
    Join Date
    02-11-2009
    Location
    USA
    MS-Off Ver
    Excel 2003
    Posts
    93

    Question Re: Using a Command Button to Prioritize a Range

    You original code seems to be working fine. I have attached the actual spreadsheet that I wanted to incoporate the code into.

    I seem to be having problems with my forumulas and your code.
    In my spreadsheet, I have some conditional formatting that is needed to drive the spreadsheet. When you review my spreasheet, you will see how formulas in Column AN:BR and the conditional formatting works.

    My problem is that when I use the Move up and Move Down code to prioritize my projects, it some how rearranges my formulas in Columns AN:BR. Therefore, not given me the correct condtional formatting.

    Could it be that your code is moving the entire row, instead of the values in the row? That is just my guess.

    Please advise.
    Last edited by siamadu; 03-04-2009 at 11:12 AM.

  9. #9
    Registered User
    Join Date
    02-11-2009
    Location
    USA
    MS-Off Ver
    Excel 2003
    Posts
    93

    Re: Using a Command Button to Prioritize a Range

    Any thoughts?
    Last edited by siamadu; 03-04-2009 at 11:08 AM.

  10. #10
    Registered User
    Join Date
    02-11-2009
    Location
    USA
    MS-Off Ver
    Excel 2003
    Posts
    93

    Re: Using a Command Buttons to Prioritize a Range

    Can someone please help?!

  11. #11
    Forum Expert mikerickson's Avatar
    Join Date
    03-30-2007
    Location
    Davis CA
    MS-Off Ver
    Excel 2011
    Posts
    6,229

    Re: Using a Command Buttons to Prioritize a Range

    I don't know why its not copying the formats.

  12. #12
    Registered User
    Join Date
    02-11-2009
    Location
    USA
    MS-Off Ver
    Excel 2003
    Posts
    93

    Exclamation Re: Using a Command Buttons to Prioritize a Range

    No No!! Sorry, I think I did not explain myself clearly.

    I do not want it to copy the formats. I want the conditional formating and formulas to remaining the same. I only want it to move the values up and down in a range.
    Last edited by siamadu; 03-05-2009 at 02:05 PM.

  13. #13
    Forum Expert mikerickson's Avatar
    Join Date
    03-30-2007
    Location
    Davis CA
    MS-Off Ver
    Excel 2011
    Posts
    6,229

    Re: Using a Command Buttons to Prioritize a Range

    I think this will do what you want.
    Please Login or Register  to view this content.
    Attached Files Attached Files

  14. #14
    Registered User
    Join Date
    02-11-2009
    Location
    USA
    MS-Off Ver
    Excel 2003
    Posts
    93

    Thumbs up Re: Using a Command Buttons to Prioritize a Range

    Thank you so much. You are a genious.

+ 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