+ Reply to Thread
Results 1 to 4 of 4

Press enter when alert pops up in excel

  1. #1
    Registered User
    Join Date
    06-15-2017
    Location
    ISRAEL
    MS-Off Ver
    16
    Posts
    2

    Press enter when alert pops up in excel

    I use ActiveWorkbook.Lockserverfile procedure in excel 2016

    When I run my macro and the file with this procedure(ActiveWorkbook.lockServer) opened in another computer I get a an alert : enter image description here



    CHECK001.PNG
    I want that "enter" button will be pressed automaticaly so that file will opened as read only.

    I open for other suggestion like turn off the alerts (didn't work)


    I posted same in other forums but didn't get anwer

    https://stackoverflow.com/questions/...ps-up-in-excel

    http://www.ozgrid.com/forum/showthre...goto=newpost**
    Last edited by Martins88; 06-15-2017 at 03:47 PM.

  2. #2
    Forum Expert sweep's Avatar
    Join Date
    04-03-2007
    Location
    Great Sankey, Warrington, UK
    MS-Off Ver
    2003 / 2007 / 2010 / 2016 / 365
    Posts
    3,445

    Re: Press enter when alert pops up in excel

    Hi,

    DOes this help at all?

    Please Login or Register  to view this content.
    It's worth taking a look here. Which suggests that notify must be set to true, otherwise trying to open an in use file will fail.

    If the file cannot be opened in read/write mode, this argument is True to add the file to the file notification list. Microsoft Excel will open the file as read-only, poll the file notification list, and then notify the user when the file becomes available. If this argument is False or omitted, no notification is requested, and any attempts to open an unavailable file will fail.
    Rule 1: Never merge cells
    Rule 2: See rule 1

    "Tomorrow I'm going to be famous. All I need is a tennis racket and a hat".

  3. #3
    Registered User
    Join Date
    06-15-2017
    Location
    ISRAEL
    MS-Off Ver
    16
    Posts
    2

    Re: Press enter when alert pops up in excel

    Quote Originally Posted by sweep View Post
    Hi,

    DOes this help at all?

    Please Login or Register  to view this content.
    It's worth taking a look here. Which suggests that notify must be set to true, otherwise trying to open an in use file will fail.


    No. I want to open this file for editing and if this file locked in another station I want to proceed to next file without press ok (vba needed cause I not near the comp where this happened )

  4. #4
    Forum Expert sweep's Avatar
    Join Date
    04-03-2007
    Location
    Great Sankey, Warrington, UK
    MS-Off Ver
    2003 / 2007 / 2010 / 2016 / 365
    Posts
    3,445

    Re: Press enter when alert pops up in excel

    Check if the file is open before you attempt to open it. There is an example of how you can do that at the following page

    https://stackoverflow.com/questions/...s-already-open

+ 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. Press Enter & Login to Excel Sheet
    By rana19 in forum Excel General
    Replies: 8
    Last Post: 02-06-2015, 03:28 AM
  2. Replies: 3
    Last Post: 02-23-2013, 08:25 AM
  3. [SOLVED] Press Enter To Run Macro
    By Bmiller109 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 01-18-2013, 04:47 PM
  4. [SOLVED] keep having to press enter
    By louise2613 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 12-18-2012, 09:22 AM
  5. Macro to make Excel press F2 and Enter for me a bunch of times
    By nicelyj2 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 10-17-2012, 08:17 AM
  6. When I Press the Enter Key Nothing happens.
    By bigev in forum Excel General
    Replies: 1
    Last Post: 03-01-2006, 11:10 AM
  7. Press Enter in TextBox
    By d61helix in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 04-14-2005, 11:35 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