+ Reply to Thread
Results 1 to 7 of 7

auto - select, sort , save after paste

  1. #1
    Valued Forum Contributor
    Join Date
    12-01-2011
    Location
    Philippines
    MS-Off Ver
    Excel 2016
    Posts
    949

    auto - select, sort , save after paste

    hi,

    after a paste action in the sheet how do you?
    auto select A1 up to the last row in column C with data
    then auto sort the selection based on column A
    then auto save

  2. #2
    Forum Expert
    Join Date
    11-22-2016
    Location
    Cornwall,UK
    MS-Off Ver
    office 365
    Posts
    4,240

    Re: auto - select, sort , save after paste

    try this
    - assumes that the correct workbook is active
    - assumes that there are no empty cells in the relevant range in column A
    - amend sheet name "MyData"

    Please Login or Register  to view this content.
    Last edited by kev_; 01-18-2017 at 09:45 AM.

  3. #3
    Forum Expert
    Join Date
    11-22-2016
    Location
    Cornwall,UK
    MS-Off Ver
    office 365
    Posts
    4,240

    Re: auto - select, sort , save after paste

    Lazy version of the same code

    Please Login or Register  to view this content.

  4. #4
    Valued Forum Contributor
    Join Date
    12-01-2011
    Location
    Philippines
    MS-Off Ver
    Excel 2016
    Posts
    949

    Re: auto - select, sort , save after paste

    how do you trigger the macro select-sort-save after a paste action?

    my list has no header should i just edit "Header:=xlYes" to "Header:=xlNo" ?

  5. #5
    Forum Expert
    Join Date
    11-22-2016
    Location
    Cornwall,UK
    MS-Off Ver
    office 365
    Posts
    4,240

    Re: auto - select, sort , save after paste

    Add this line at the end of the Paste macro
    Please Login or Register  to view this content.
    my list has no header should i just edit "Header:=xlYes" to "Header:=xlNo" ?
    YES

  6. #6
    Valued Forum Contributor
    Join Date
    12-01-2011
    Location
    Philippines
    MS-Off Ver
    Excel 2016
    Posts
    949

    Re: auto - select, sort , save after paste

    got it thanks!

  7. #7
    Forum Expert
    Join Date
    11-22-2016
    Location
    Cornwall,UK
    MS-Off Ver
    office 365
    Posts
    4,240

    Re: auto - select, sort , save after paste

    You are welcome
    Thanks for the rep

+ 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. auto sort automatically on save
    By WylieDude in forum Excel General
    Replies: 5
    Last Post: 12-14-2016, 11:45 PM
  2. save custom auto sort for multiple table
    By TPus17 in forum Excel General
    Replies: 4
    Last Post: 01-30-2013, 01:52 PM
  3. [SOLVED] Query Multiple Web Pages> Sort For Specific Criteria > Save Lists of Sort in txt files
    By Tlandress in forum Excel Programming / VBA / Macros
    Replies: 18
    Last Post: 01-15-2013, 12:09 AM
  4. Auto Sort, Auto Lock, Auto Date & Time Stamp
    By suehatesyou in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 10-23-2010, 02:57 PM
  5. Creating a loop that will sort, copy, paste and save data into seperate workbooks
    By EggHead in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 12-14-2009, 03:17 PM
  6. Auto-Paste Data on save to Another Sheet
    By tariqnaz2005 in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 10-14-2009, 08:36 AM
  7. [SOLVED] Auto sort & save
    By Pebbbles in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 02-13-2006, 11:30 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