+ Reply to Thread
Results 1 to 2 of 2

How to check if excel file is Checked Out in SharePoing Check Out, run code, Check In

  1. #1
    Forum Contributor
    Join Date
    04-15-2012
    Location
    California, USA
    MS-Off Ver
    Excel 2016 / Office 365
    Posts
    115

    How to check if excel file is Checked Out in SharePoing Check Out, run code, Check In

    I am trying to get the following code to work when I transfer the file from the server into SharePoint. The main workbook checks to see if the second workbook is read only before processing the rest of the code. If it is read only it tells the user they cannot continue and closes the second workbook. I am having trouble getting it to do the same in SharePoint.

    Code works on server
    Please Login or Register  to view this content.
    I found info that Read Only does not work In SharePoint so I have tried variations of trying to check if it can be checked out and checking it out but it wont check out.

    Please Login or Register  to view this content.
    The code runs through without errors but hangs up and says that excel is waiting for another application to complete on OLE action causing me to use Task Manager and stop the process. When I open the second file, I see that it was never checked out so I am assuming it hangs up there. I can modify the files to make them small enough to attach if someone needs to see them to help out.

  2. #2
    Forum Contributor
    Join Date
    04-15-2012
    Location
    California, USA
    MS-Off Ver
    Excel 2016 / Office 365
    Posts
    115

    Re: How to check if excel file is Checked Out in SharePoing Check Out, run code, Check In

    Ok, I have gotten the following code to work, but I had to unprotect the workbook to do it. Anyone know how I can keep the workbook protected and enter the password with the code. Its weird though because even when using application.screenupdating, the screen still flashes with the other document briefly.

    Please Login or Register  to view this content.
    When I use the following code, it works but I am prompted for the password to check out the file.

    Please Login or Register  to view this content.
    it wont allow me to enter a password in the code when checking out the file
    Workbooks.CheckOut (strFile), Password:="dstmfg" ---wont work
    Workbooks.CheckOut (strFile, Password:="dstmfg") ---wont work

    Any ideas??

+ 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. possible to check for file in multiple folders, then check for values in specific cells?
    By mattheritage in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 01-04-2014, 08:33 AM
  2. 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
  3. [SOLVED] I would like to run VBA code when a check box is checked.
    By redsab in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 09-01-2013, 06:59 PM
  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. [SOLVED] Vba code to fill check in & check out counts
    By ashfaquebwd in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 03-20-2013, 09:02 AM
  6. Replies: 2
    Last Post: 12-19-2012, 11:23 PM
  7. How do I tally checked check boxes in an Excel spreadsheet?
    By acpharmd in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 06-19-2006, 04:40 PM
  8. 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

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