+ Reply to Thread
Results 1 to 2 of 2

How to select "yes" when prompted to check in sharepoint file using VBA

  1. #1
    Registered User
    Join Date
    10-07-2013
    Location
    San Jose, CA
    MS-Off Ver
    Excel 2010
    Posts
    1

    How to select "yes" when prompted to check in sharepoint file using VBA

    Hello all,

    I am trying to automate an excel file from sharepoint to be updated every time a specific email is received all using VBA. I have almost EVERYTHING figured out except when I have to check the file back in to sharepoint. I tried the CheckIn method and followed the countless examples I found online that supposedly work. However, it never works for me.
    So I've been trying to figure out a workaround...

    When I save and close the file on VBA a notification pops up asking if I'd also like to check in the file to sharepoint. HERE is where I'd like to be able to select YES so that the excel file gets checked in. Does anyone know how to automate this with VBA? Simply putting Application.DisplayAlerts = false will not work because it doesn't actually check in the sharepoint file after my file closes, it just eliminates the alert. Any suggestions?

  2. #2
    Registered User
    Join Date
    08-03-2012
    Location
    Ottawa
    MS-Off Ver
    Excel 2010
    Posts
    4

    Re: How to select "yes" when prompted to check in sharepoint file using VBA

    Here is solution that works for me:




    Please Login or Register  to view this content.
    Note that even though the CheckIn function checks in the file, it will not show as checked in in SharePoint until you close it, hence the Workbooks.Close command.

    Hope this helps

    Derek

+ 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: 5
    Last Post: 01-23-2014, 11:02 AM
  2. Opening SharePoint file with VBA - disable SharePoint "Contacting the server" message
    By kopite2002 in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 10-22-2013, 01:56 AM
  3. Macro to select "Continue" when opening another file and prompted to update links
    By kwaldersen in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 10-25-2012, 11:57 AM
  4. Transfert cell values from file "A" to file "B" skipping columns in file "B".
    By Sentrosi in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 07-16-2009, 11:11 PM
  5. create links to check boxes marked "good" fair"and "bad"
    By pjb in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 04-19-2006, 09:25 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