+ Reply to Thread
Results 1 to 15 of 15

Highlighting and moving rows within a spreadsheet after a date is added

  1. #1
    Registered User
    Join Date
    03-13-2013
    Location
    East Yorkshire
    MS-Off Ver
    Office 365
    Posts
    42

    Post Highlighting and moving rows within a spreadsheet after a date is added

    Hi,
    I have an excel sheet with 8 columns and about 200 + rows. When I add a delivery date in to the 8th column in an ideal world I'd like the whole row to become highlighted and then moved to the top of my worksheet in date order. Is this asking too much of excel?

    I'd like all items that have a delivery date moved out the way so I can concentrate on what is left in excel. I hope this makes sense?

    Many thanks for your help
    Regards
    Faye
    Attached Files Attached Files
    Last edited by fayec; 06-30-2020 at 08:36 AM. Reason: Change of title

  2. #2
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,794

    Re: Conditions & Formatting

    Administrative Note:

    We would very much like to help you with your query, however the thread title does not really convey what your request is about. Tell us what you are trying to do, not how you think it should be done.

    Please take a moment to amend your thread title. Make sure that the title properly explains your request. Your title should be explicit and not be generic (this includes function names used without an indication of what you are trying to achieve).

    Please see Forum Rule #1 about proper thread titles and adjust accordingly. To edit the thread title, open the original post to edit and then click on Go Advanced (bottom right) to access the area where you can edit your title.

    (Note: this change is not optional. No help to be offered until this moderation request has been fulfilled.)
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    Forum Rules (updated August 2023): please read them here.

  3. #3
    Registered User
    Join Date
    03-13-2013
    Location
    East Yorkshire
    MS-Off Ver
    Office 365
    Posts
    42

    Re: Conditions & Formatting

    Hopefully my new title is ok now? Sorry about that
    Regards
    Faye

  4. #4
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,794

    Re: Highlighting and moving rows within a spreadsheet after a date is added

    Yes, thanks.

  5. #5
    Forum Expert BadlySpelledBuoy's Avatar
    Join Date
    06-14-2013
    Location
    East Sussex, UK
    MS-Off Ver
    365
    Posts
    7,468

    Re: Highlighting and moving rows within a spreadsheet after a date is added

    This could be done, but you'd have to use VBA and a macro enabled file to accomplish it.
    If that works for you then I could write some code for you.

    BSB

  6. #6
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,794

    Re: Highlighting and moving rows within a spreadsheet after a date is added

    Moved to the VBA section.

  7. #7
    Forum Expert BadlySpelledBuoy's Avatar
    Join Date
    06-14-2013
    Location
    East Sussex, UK
    MS-Off Ver
    365
    Posts
    7,468

    Re: Highlighting and moving rows within a spreadsheet after a date is added

    In the attached I've added the below worksheet change event code. See if this works for you as a starter for 10.

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

  8. #8
    Registered User
    Join Date
    03-13-2013
    Location
    East Yorkshire
    MS-Off Ver
    Office 365
    Posts
    42

    Re: Highlighting and moving rows within a spreadsheet after a date is added

    That's super thank you. How do I transfer this rule to my work sheet with the 200+ apologies I'm not very good with excel and still learning.
    Thanks
    Regards
    Faye

  9. #9
    Registered User
    Join Date
    03-13-2013
    Location
    East Yorkshire
    MS-Off Ver
    Office 365
    Posts
    42

    Re: Highlighting and moving rows within a spreadsheet after a date is added

    Hi,
    This sounds interesting but I must be honest all this is new to me so I don't know what VBA stands for. Sorry
    Regards
    Faye

  10. #10
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,794

    Re: Highlighting and moving rows within a spreadsheet after a date is added

    VBA = Visual Basic for Applications (aka code).

  11. #11
    Forum Expert BadlySpelledBuoy's Avatar
    Join Date
    06-14-2013
    Location
    East Sussex, UK
    MS-Off Ver
    365
    Posts
    7,468
    Copy the code from my previous post, open your workbook, right click on the tab at the bottom for the sheet you wish it to run on and select "View code".
    Paste the code in the window that opens then click X to return to the sheet.

    Save the file with a .xlsm extension and you're done.

    BSB

  12. #12
    Registered User
    Join Date
    03-13-2013
    Location
    East Yorkshire
    MS-Off Ver
    Office 365
    Posts
    42

    Re: Highlighting and moving rows within a spreadsheet after a date is added

    Thank you, I've followed your instructions but its not sorted my deliveries to the top, do I need to do something else?
    Thank you
    Regards
    Faye

  13. #13
    Forum Expert BadlySpelledBuoy's Avatar
    Join Date
    06-14-2013
    Location
    East Sussex, UK
    MS-Off Ver
    365
    Posts
    7,468

    Re: Highlighting and moving rows within a spreadsheet after a date is added

    Would it be possible for you to attach a desensitized version of the file? Easier to find out why it's not working that way.

    BSB

  14. #14
    Registered User
    Join Date
    03-13-2013
    Location
    East Yorkshire
    MS-Off Ver
    Office 365
    Posts
    42

    Re: Highlighting and moving rows within a spreadsheet after a date is added

    Hi,
    I've attached the excel sheet that I added the code to.
    Thank you
    Regards
    Faye
    Attached Files Attached Files

  15. #15
    Registered User
    Join Date
    07-13-2020
    Location
    San Diego, CA
    MS-Off Ver
    Office 365
    Posts
    26

    Re: Highlighting and moving rows within a spreadsheet after a date is added

    Hello There!
    I followed this thread and tried out the code that you mentioned. It worked for me provided that my data is entered starting at the top row of the worksheet. It doesn't seem to work for me if the data is entered randomly in the middle of the worksheet (see attached worksheet), even when I change the code to select the correct ranges? Can you please help?
    Attached Files Attached Files

+ 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. Delete Conditional Formatting conditions but keep cell formatting
    By Devendra.dvm in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 01-03-2016, 04:07 AM
  2. Formatting According to Conditions
    By andrewc in forum Excel General
    Replies: 2
    Last Post: 10-16-2015, 06:30 PM
  3. Need Help with Conditional Formatting with 2 Conditions
    By Michaelt2 in forum Excel Formulas & Functions
    Replies: 10
    Last Post: 01-05-2014, 08:51 PM
  4. Delete Conditional Formatting conditions but keep cell formatting - Excel 2010
    By tetreama in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 08-09-2012, 08:28 PM
  5. formatting wth 3 conditions
    By lookingforanwers in forum Excel General
    Replies: 8
    Last Post: 05-24-2012, 01:51 PM
  6. More than 3 conditions for formatting
    By nsv in forum Excel General
    Replies: 3
    Last Post: 03-08-2006, 10:23 AM
  7. [SOLVED] Conditional formatting wth more than 3 conditions
    By Temp in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 09-06-2005, 06:05 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