+ Reply to Thread
Results 1 to 3 of 3

Automatically Log-off All and Stop a running loop in the middle

  1. #1
    Forum Contributor
    Join Date
    08-12-2010
    Location
    Excel World
    MS-Off Ver
    Excel 2013, 2019 & O365
    Posts
    214

    Automatically Log-off All and Stop a running loop in the middle

    Aim/ Object - I've made this Time Calculation Tracker. I've made an extra commandbutton 'Log-off @ 17:00" to automatically log-off everyone @ 17:00 everyday (business days only or when I only work on this workbook).

    Problem - How can I make the 'Log-off @ 17:00' commandbutton work automatically in the workbook, so every employee will be logged-off at the same time and easy to track their total log-in hours?

    The codes I've made are working fine, but If the last employee is on leave and I click on the commandbutton 'Log-off @ 17:00", omg! it runs continuously ...till until the end of the columns. Could u plz help me out in this too?

    One More Query - How to stop a running loop in the middle?


    Kindly help me out!

    Thanks in advance!
    Last edited by SunOffice; 10-25-2010 at 12:08 AM. Reason: ...more explained!

  2. #2
    Forum Moderator Leith Ross's Avatar
    Join Date
    01-15-2005
    Location
    San Francisco, Ca
    MS-Off Ver
    2000, 2003, & 2010
    Posts
    23,259

    Re: Automatically Log-off All and Stop a running loop in the middle

    Hello SunOffice,

    Here is the safest way to log users off.
    How To Force Users to Quit Programs and Log Off After a Period of Inactivity in Windows XP

    I don't have Windows 7 or Vista and can't offer any advice on those platforms.
    Sincerely,
    Leith Ross

    Remember To Do the Following....

    1. Use code tags. Place [CODE] before the first line of code and [/CODE] after the last line of code.
    2. Thank those who have helped you by clicking the Star below the post.
    3. Please mark your post [SOLVED] if it has been answered satisfactorily.


    Old Scottish Proverb...
    Luathaid gu deanamh maille! (Rushing causes delays!)

  3. #3
    Forum Contributor
    Join Date
    08-12-2010
    Location
    Excel World
    MS-Off Ver
    Excel 2013, 2019 & O365
    Posts
    214

    Re: Automatically Log-off All and Stop a running loop in the middle

    Thanks for ur reply, but sorry I didn't explain my problem clearly.

    Actually I would like to make the commandbutton 'Log-off @ 17:00" work automatically in the attached workbook, so every employee's Log-off time will show automatically. I work on this workbook to track their total log-in hours, but many times I have to manually insert their fixed log-off time as 17:00. That's why I need any code for the commandbutton 'Log-off @ 17:00" to work automatically.

    one more issue in this - The codes I've made are working fine, but If the last employee is on leave and I click on the commandbutton 'Log-off @ 17:00", it runs continuously ....till until the end of the columns. Could u plz help me out in this too?
    Last edited by SunOffice; 10-25-2010 at 12:09 AM.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

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