+ Reply to Thread
Results 1 to 9 of 9

Need assistance with my Basic Employee attendance Point Tracker

  1. #1
    Registered User
    Join Date
    07-30-2019
    Location
    SC,US
    MS-Off Ver
    2003
    Posts
    3

    Need assistance with my Basic Employee attendance Point Tracker

    Hello,
    I am new to Visual Studio and average with excel. I built this basic employee attendance point tracker using information from online tutorials. There is a few things I would like to do, but am struggling to figure out. FYI, the area's in gray will be hidden upon completion of my data entry form.

    1st. I would like the data to automatically be alphabetized by employee name. I can only seem to get the whole column alphabetized. I need it from D14 down.
    2nd. I need to figure out how to get my form to automatically detect an employees name, how many entry's and the points associated for those days and give the sum in the Total Points locations. Specifically when a new entry is saved.
    3rd. Since my company keeps points for a year, I need my form to delete entries that exceed a year from the current date(today's date).

    Any help is greatly appreciated. I am open to any criticisms or suggestions. Please bare my inexperience in mind. Special thanks to "Excel For Freelancers" for their web tutorials.
    Attached Files Attached Files

  2. #2
    Forum Expert Keebellah's Avatar
    Join Date
    01-12-2014
    Location
    The Netherlands
    MS-Off Ver
    Office 2021 (Windows)
    Posts
    7,905

    Re: Need assistance with my Basic Employee attendance Point Tracker

    Hi welcome to the forum.
    The sorting can be done for any range ans long as you determine it in the macro.
    May I correctly assume that the range you want to sort is columns D13 though I13 and the data below that?
    ---
    Hans
    "IT" Always crosses your path!
    May the (vba) code be with you... if it isn't; start debugging!
    If you like my answer, Click the * below to say thank-you

  3. #3
    Forum Expert Keebellah's Avatar
    Join Date
    01-12-2014
    Location
    The Netherlands
    MS-Off Ver
    Office 2021 (Windows)
    Posts
    7,905

    Re: Need assistance with my Basic Employee attendance Point Tracker

    For the sorting part you =can include this macro in your vba project
    Please Login or Register  to view this content.
    Call it at the end of the Cont_Delete and the Cont_Save macros just before the End Sub

    Please Login or Register  to view this content.

  4. #4
    Registered User
    Join Date
    07-30-2019
    Location
    SC,US
    MS-Off Ver
    2003
    Posts
    3

    Re: Need assistance with my Basic Employee attendance Point Tracker

    Thanks so much for your response Keebellah. Unfortunately I cant seem to get the Macro to action. Perhaps because its line d14 and down that needs the sorting, where as line d13 is supposed to be the highlighted or current entry selected. I tried changing the info, but I kept getting errors.

  5. #5
    Forum Expert Keebellah's Avatar
    Join Date
    01-12-2014
    Location
    The Netherlands
    MS-Off Ver
    Office 2021 (Windows)
    Posts
    7,905

    Re: Need assistance with my Basic Employee attendance Point Tracker

    When sorting you sort the entire table and since the header is defined then it should work.
    I don't know what you're doing and you say you get errors but not what errors and at which point, my guessing won't work

  6. #6
    Registered User
    Join Date
    07-30-2019
    Location
    SC,US
    MS-Off Ver
    2003
    Posts
    3

    Re: Need assistance with my Basic Employee attendance Point Tracker

    Runtime error. Object doesnt support rhis property or method.

    ws.Sort.SortFields.Add2 Key:=Range("D13"), _
    SortOn:=xlSortOnValues, Order:=xlAscending, DataOption:=xlSortNormal

  7. #7
    Forum Expert Keebellah's Avatar
    Join Date
    01-12-2014
    Location
    The Netherlands
    MS-Off Ver
    Office 2021 (Windows)
    Posts
    7,905

    Re: Need assistance with my Basic Employee attendance Point Tracker

    I suggest you record a macro and sort the table using your Excel version, that's probably the reason the sorting doesn't work on your system.
    After you record the macro open the editor and copy that code replace the code I wrote for you.
    If you still get stuck, attach the recorded macro code in the post

  8. #8
    Forum Guru bakerman2's Avatar
    Join Date
    10-03-2012
    Location
    Antwerp, Belgium
    MS-Off Ver
    MO Prof Plus 2016
    Posts
    6,907

    Re: Need assistance with my Basic Employee attendance Point Tracker

    If XL2003 is your true version then SortFields won't work because it's only available from version 2007 up.

    Something like this should work though.

    Please Login or Register  to view this content.
    Avoid using Select, Selection and Activate in your code. Use With ... End With instead.
    You can show your appreciation for those that have helped you by clicking the * at the bottom left of any of their posts.

  9. #9
    Forum Expert Keebellah's Avatar
    Join Date
    01-12-2014
    Location
    The Netherlands
    MS-Off Ver
    Office 2021 (Windows)
    Posts
    7,905

    Re: Need assistance with my Basic Employee attendance Point Tracker

    I integrated bakerman2's code so that it works with all versions (I hope)
    I did notice that your save and delete buttons don't really do what they should but that's your code
    I've attached the file with the sort part
    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. [SOLVED] Need help editing employee attendance tracker
    By notnutts in forum Excel General
    Replies: 7
    Last Post: 07-12-2019, 03:28 PM
  2. Replies: 3
    Last Post: 08-02-2018, 08:53 AM
  3. Employee attendance tracker template
    By buhhan in forum Excel Charting & Pivots
    Replies: 3
    Last Post: 07-13-2017, 03:58 AM
  4. Employee Attendance Tracker Help :)
    By Block118 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 03-18-2017, 06:48 AM
  5. RE: Please Help to advise -Employee Attendance Tracker
    By joannewoon in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 04-17-2016, 02:51 PM
  6. [SOLVED] Employee attendance tracker
    By akash kothari in forum Excel Programming / VBA / Macros
    Replies: 12
    Last Post: 09-11-2013, 08:08 AM
  7. [SOLVED] Employee attendance tracker
    By sanjeevi888 in forum Excel - New Users/Basics
    Replies: 5
    Last Post: 06-19-2012, 12:54 PM

Tags for this Thread

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