+ Reply to Thread
Results 1 to 3 of 3

Prompts and their responses

  1. #1
    Registered User
    Join Date
    06-30-2009
    Location
    Argentina
    MS-Off Ver
    Excel 2003
    Posts
    3

    Prompts and their responses

    Hello, fisrt I am sorry if this is the wrong place to post, but I have looked everywhere I was unable to fin the answer to my problem, in there you will find part of my code

    AddNew newBook, sFileName // Creates a new file
    newBook.Activate

    //After this I have a prompt asking me If i want to replace the existing file, I do, so I disable the Alerts to automatically do it.
    Application.DisplayAlerts = False

    // I save this file to a SharePoint, the thing is after the file is saved is put in CHECK OUT mode which block any other user from ussing this file, this is how the SharePoint works I have no control over this

    newBook.SaveAs "https://channelone.cognizant.com/sites/Shared%20Workspace/Argentina/NVIS/Asset%20Library/Carpeta%20De%20Prueba%20-%20No%20Borrar%20Por%20Favor/" & sFileName


    Application.DisplayAlerts = True // Enable alerts

    //This is my problem
    ActiveWorkbook.Close SaveChanges:=True



    In order for me to remove the CHECK OUT mode from the file I need to close the excel and do a CHECK IN, problems is after trying to close the file I get a prompt asking me If i want to check in but the default answer is to NOT DO THE CHECK IN so if I use DisplayAlerts = False excel will automatically select the option NO and I need to select the option YES

    is there a way to tell excel that it needs to select "YES" and "OK" on every prompt regardless of what the default answer is?


    I hope I was clear, sorry for my english

    Thanks in advanced

  2. #2
    Registered User
    Join Date
    06-30-2009
    Location
    Argentina
    MS-Off Ver
    Excel 2003
    Posts
    3

    Re: Prompts and their responses

    Sorry for postting again but I trully need to know if there is a solution for this.

    Thank again

  3. #3
    Registered User
    Join Date
    06-30-2009
    Location
    Argentina
    MS-Off Ver
    Excel 2003
    Posts
    3

    Re: Prompts and their responses

    One final UP, I need an answer=(

    Eddie

+ 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