+ Reply to Thread
Results 1 to 9 of 9

Macro to select Last Row and sort it to above data

  1. #1
    Valued Forum Contributor
    Join Date
    11-27-2013
    Location
    Brooklyn, NY
    MS-Off Ver
    Office 365
    Posts
    1,172

    Macro to select Last Row and sort it to above data

    Hi all!
    I made the part of the code that is causing issues red.
    I am trying to select the last row and sort it by column C into the data above.
    Looking forward to any responses



    Please Login or Register  to view this content.

  2. #2
    Forum Expert
    Join Date
    03-28-2012
    Location
    TBA
    MS-Off Ver
    Office 365
    Posts
    12,454

    Re: Macro to select Last Row and sort it to above data

    Remove the select

    Please Login or Register  to view this content.

  3. #3
    Valued Forum Contributor
    Join Date
    11-27-2013
    Location
    Brooklyn, NY
    MS-Off Ver
    Office 365
    Posts
    1,172

    Re: Macro to select Last Row and sort it to above data

    Hi and thank you for the response.
    I tried that before but it didn't work

  4. #4
    Forum Expert
    Join Date
    03-28-2012
    Location
    TBA
    MS-Off Ver
    Office 365
    Posts
    12,454

    Re: Macro to select Last Row and sort it to above data

    Did you get an error? If so, in which line?
    The sort bit of code appears to be recorded macro.

  5. #5
    Valued Forum Contributor
    Join Date
    11-27-2013
    Location
    Brooklyn, NY
    MS-Off Ver
    Office 365
    Posts
    1,172

    Re: Macro to select Last Row and sort it to above data

    The line that read "With ws.Range(LR)" got highlighted.
    And yes, the sorting was recorded.

  6. #6
    Forum Expert
    Join Date
    03-28-2012
    Location
    TBA
    MS-Off Ver
    Office 365
    Posts
    12,454

    Re: Macro to select Last Row and sort it to above data

    Okay! Where is LR in your data?

  7. #7
    Valued Forum Contributor
    Join Date
    11-27-2013
    Location
    Brooklyn, NY
    MS-Off Ver
    Office 365
    Posts
    1,172

    Re: Macro to select Last Row and sort it to above data

    The last row in column A

  8. #8
    Forum Expert
    Join Date
    03-28-2012
    Location
    TBA
    MS-Off Ver
    Office 365
    Posts
    12,454

    Re: Macro to select Last Row and sort it to above data

    Yes, but that is not the range.

    Please Login or Register  to view this content.

  9. #9
    Valued Forum Contributor
    Join Date
    11-27-2013
    Location
    Brooklyn, NY
    MS-Off Ver
    Office 365
    Posts
    1,172

    Re: Macro to select Last Row and sort it to above data

    AB33, now my code is working flawlessly

    Thank you.

+ 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] Macro to select a data range then apply a custom sort
    By dvsbyknight in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 06-20-2013, 01:50 AM
  2. Avoid view jumping around with select and sort from macro
    By lemonstar in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 08-05-2012, 07:34 PM
  3. Macro to select a range and sort/Sum by month
    By rlsublime in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 11-22-2011, 03:13 AM
  4. Select Data Dynamically and then Sort
    By rvc81 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 12-13-2010, 08:28 AM
  5. A sort and select macro
    By stanja in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 09-10-2009, 05:14 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