+ Reply to Thread
Results 1 to 10 of 10

Disable prompt messages

  1. #1
    Valued Forum Contributor
    Join Date
    11-27-2013
    Location
    Waterbury, CT
    MS-Off Ver
    Office 365
    Posts
    1,175

    Disable prompt messages

    Hi.
    In workbook-A there are cells which are linked to other cells in a different workbook called workbook-B. Workbook be is protected with a pass code so if i open workbook-A with out opening Workbook-B i get promted to enter Workbook-B's pass code.
    How can i avoid the prompt? Because if i hit cancel when excel asks me to enter a pass code the linked information doesn't change, i just don't want the headache of getting the prompt message each time if there is no need for it.
    Any ideas?
    I was thinking of maybe putting this code on the workbook but i'm not having any luck:
    Please Login or Register  to view this content.

  2. #2
    Forum Expert
    Join Date
    03-28-2012
    Location
    TBA
    MS-Off Ver
    Office 365
    Posts
    12,454

    Re: Disable prompt messages

    I think you have the correct line, but you can add these 2 lines and see if they make any difference

    Please Login or Register  to view this content.

  3. #3
    Forum Expert
    Join Date
    11-24-2013
    Location
    Paris, France
    MS-Off Ver
    Excel 2003 / 2010
    Posts
    9,831

    Lightbulb Re: Disable prompt messages


    Hi kosherboy,

    just read inner VBA help of Workbooks.Open method and see its arguments !
    Last edited by Marc L; 07-25-2014 at 12:34 PM.

  4. #4
    Valued Forum Contributor
    Join Date
    11-27-2013
    Location
    Waterbury, CT
    MS-Off Ver
    Office 365
    Posts
    1,175

    Re: Disable prompt messages

    Quote Originally Posted by AB33 View Post
    I think you have the correct line, but you can add these 2 lines and see if they make any difference

    Please Login or Register  to view this content.
    Thanks AB33, and what header do i use? Public Sub......?

  5. #5
    Valued Forum Contributor
    Join Date
    11-27-2013
    Location
    Waterbury, CT
    MS-Off Ver
    Office 365
    Posts
    1,175

    Re: Disable prompt messages

    AB33, will your code disable all my other macros from running on the workbook?

  6. #6
    Forum Expert
    Join Date
    03-28-2012
    Location
    TBA
    MS-Off Ver
    Office 365
    Posts
    12,454

    Re: Disable prompt messages

    There is no header, you add these two lines with the one you have.
    Public Sub could mean the code is visible thought the project as opposed to private sub

  7. #7
    Forum Expert
    Join Date
    03-28-2012
    Location
    TBA
    MS-Off Ver
    Office 365
    Posts
    12,454

    Re: Disable prompt messages

    No, It just suppress the message.

  8. #8
    Valued Forum Contributor
    Join Date
    11-27-2013
    Location
    Waterbury, CT
    MS-Off Ver
    Office 365
    Posts
    1,175

    Re: Disable prompt messages

    Ok so tell me if i'm doing right:
    I right click on the sheet and click on "view code" then i double click on "this workbook" in the code window and i put in the following code:

    Please Login or Register  to view this content.

  9. #9
    Forum Expert
    Join Date
    03-28-2012
    Location
    TBA
    MS-Off Ver
    Office 365
    Posts
    12,454

    Re: Disable prompt messages

    What Marc's suggested is like this

    Please Login or Register  to view this content.

    Or similar to

    Please Login or Register  to view this content.
    where bkPath is your folder path

  10. #10
    Valued Forum Contributor
    Join Date
    11-27-2013
    Location
    Waterbury, CT
    MS-Off Ver
    Office 365
    Posts
    1,175

    Re: Disable prompt messages

    AB33, your answer worked, thanks.
    I looked into Marc's response and now the whole concept makes sense to me. Thanks Marc.

+ 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. Prompt Error Messages if Row exceeded Limit
    By Apple Ling in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 07-05-2010, 01:31 PM
  2. Disable security messages
    By walduxas in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 04-02-2009, 02:56 AM
  3. Disable validation error messages
    By jman0707 in forum Excel General
    Replies: 10
    Last Post: 10-12-2008, 01:43 PM
  4. Disable cell warning/error messages
    By chad.whyte@gmail.com in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 03-09-2006, 07:35 PM
  5. Disable Excel Program Messages
    By Alan in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 11-03-2005, 04:40 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