+ Reply to Thread
Results 1 to 4 of 4

Auto sorting , auto update and auto save

  1. #1
    Registered User
    Join Date
    11-16-2014
    Location
    Kissimmee, FL
    MS-Off Ver
    2010
    Posts
    62

    Auto sorting , auto update and auto save

    Hello,

    I am working on a workbook to track overtime with personnel. It is based off of seniority as the worker and how much overtime you have worked. Attached is the workbook. What I am looking for is a way to sort 3 set of cells (rows 3-54, rows 42-45, rows 47-54) , each on 2 levels (first sorted by column C smallest to largest ,then column A largest to smallest). Column C is updated every time a number is put in throughout the workbook on the same row using the SUM function. What I want is the workbook to auto sort everything and save every time an entry is made in the workbook. Sheet1 is what it originally looks like and Sheet2 is what I want it to look like when everything works. Can any one help with this problem?
    Attached Files Attached Files

  2. #2
    Forum Expert Greg M's Avatar
    Join Date
    08-16-2007
    Location
    Dublin. Ireland
    MS-Off Ver
    Office 2016
    Posts
    4,520

    Re: Auto sorting , auto update and auto save

    Hi there,

    Take a look at the attached workbook and see if it does what you need.

    Changing the value / inserting a value in any of the cells in the Range(D3:No54), but excluding those columns which contain Officer Names, will cause the worksheet to be sorted in the way which you have specified.

    The workbook uses the following code inserted into the VBA CodeModule of the worksheet which contains the data to be sorted (Sheet1):

    Please Login or Register  to view this content.
    The highlighted values may be altered if the layout of your worksheet is ever changed.


    Hope this helps - please let me know how you get on.

    Regards,

    Greg M
    Attached Files Attached Files

  3. #3
    Registered User
    Join Date
    11-16-2014
    Location
    Kissimmee, FL
    MS-Off Ver
    2010
    Posts
    62

    Re: Auto sorting , auto update and auto save

    It worked great, thank you.

  4. #4
    Forum Expert Greg M's Avatar
    Join Date
    08-16-2007
    Location
    Dublin. Ireland
    MS-Off Ver
    Office 2016
    Posts
    4,520

    Re: Auto sorting , auto update and auto save

    Hi again,

    Many thanks for your very prompt feedback and also for the Reputation increase - much appreciated

    You're very welcome - I'm pleased that I was able to help.

    Best regards,

    Greg M

+ 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. Replies: 3
    Last Post: 01-29-2018, 11:34 AM
  2. Vehicle Sign Out Log - Auto Save, Auto Date & Time
    By ccalangi in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 01-21-2015, 09:16 AM
  3. macro to bring up stored workbook, auto save to a new folder, then auto fill
    By Rick23 in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 09-29-2014, 06:58 PM
  4. Auto transfer data from one tab to another the graphs and auto update
    By Elsa_Lion22 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 06-09-2014, 02:15 PM
  5. Auto-install & auto-update add-in using executable file
    By bambaataa in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 09-20-2013, 12:17 AM
  6. Auto-Install/Auto-Update Add-In Using Executable File
    By bambaataa in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 09-19-2012, 10:36 AM
  7. [SOLVED] Auto Excel workbook close: save= false during an auto subroutine
    By tomwashere2 in forum Excel Programming / VBA / Macros
    Replies: 10
    Last Post: 06-16-2005, 02: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