Results 1 to 1 of 1

Check Excel Workbook In if it Is checked out too long

Threaded View

Mathias25 Check Excel Workbook In if it... 02-06-2017, 02:22 PM
  1. #1
    Registered User
    Join Date
    08-09-2011
    Location
    USA
    MS-Off Ver
    Excel 2007
    Posts
    17

    Check Excel Workbook In if it Is checked out too long

    Hello,

    Was wondering if someone could help me modify some code? I would like to modify the VBA Sub below to automatically check the file back in if it is checked out for some period of time... say 2 hours? This would help eliminate the issue of someone checking out a file and forgetting to check it back in.
    Sub CheckInOut(strWkbCheckIn As String) 
     
     ' Determine if workbook can be checked in. 
     If Workbooks(strWkbCheckIn).CanCheckIn = True Then 
     Workbooks(strWkbCheckIn).CheckIn 
     MsgBox strWkbCheckIn & " has been checked in." 
     Else 
     MsgBox "This file cannot be checked in " & _ 
     "at this time. Please try again later." 
     End If 
     
    End Sub
    Thanks,
    Matt
    Last edited by Mathias25; 02-06-2017 at 03:20 PM.

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. call macro when newly added check box is checked on different workbook
    By tanvi_kalra in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 07-22-2016, 08:02 AM
  2. How to check if excel file is Checked Out in SharePoing Check Out, run code, Check In
    By jrtraylor in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 01-08-2016, 04:36 PM
  3. Check Box that shows options in Combo Box if Checked, and Hides if Not Checked
    By dumbjodie in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 12-13-2013, 10:06 AM
  4. Automatically check one or more check boxes when a parent check box is manually checked
    By Steverizer in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 03-28-2013, 01:56 PM
  5. Replies: 2
    Last Post: 12-19-2012, 11:23 PM
  6. Copy data against each checked check box and paste in a new excel workbook
    By rnd in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 06-28-2010, 06:04 AM
  7. In Excel, how to count a list of check boxes some are checked?
    By M. Zak in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 01-26-2006, 05:55 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