+ Reply to Thread
Results 1 to 9 of 9

Display message after workbook.open

  1. #1
    Forum Contributor
    Join Date
    07-20-2015
    Location
    Covilhã
    MS-Off Ver
    2010
    Posts
    516

    Display message after workbook.open

    Please Login or Register  to view this content.
    That's what i have and i need to display the message after Workbook.open:
    Please Login or Register  to view this content.
    Hope someone help me out with this

  2. #2
    Forum Expert JLGWhiz's Avatar
    Join Date
    02-20-2011
    Location
    Florida, USA
    MS-Off Ver
    Windows 10, Excel 2013
    Posts
    2,070

    Re: Display message after workbook.open

    The only thing that I see is that you made the host workbook read only. Try commenting out that line and see if the message then shows. Although the message box is a Windows feature and not just Excel.

  3. #3
    Forum Contributor
    Join Date
    07-20-2015
    Location
    Covilhã
    MS-Off Ver
    2010
    Posts
    516

    Re: Display message after workbook.open

    It does a reebot on active workbook and open it in read-only.

    Although even with the messagr uncommented as you can try it does show message before opening...

  4. #4
    Forum Contributor
    Join Date
    07-20-2015
    Location
    Covilhã
    MS-Off Ver
    2010
    Posts
    516

    Re: Display message after workbook.open

    I really need to display some kind of information after workbook open in shutdown macro

  5. #5
    Forum Expert JLGWhiz's Avatar
    Join Date
    02-20-2011
    Location
    Florida, USA
    MS-Off Ver
    Windows 10, Excel 2013
    Posts
    2,070

    Re: Display message after workbook.open

    I am looking at the code and wondering why you are opening a second instance of the same workbook as read only when you have already made the first instance read only. Better yet, why have two instances of the same workbook open at all?

  6. #6
    Forum Contributor
    Join Date
    07-20-2015
    Location
    Covilhã
    MS-Off Ver
    2010
    Posts
    516

    Re: Display message after workbook.open

    Quote Originally Posted by JLGWhiz View Post
    I am looking at the code and wondering why you are opening a second instance of the same workbook as read only when you have already made the first instance read only. Better yet, why have two instances of the same workbook open at all?
    I really need that do be like that cuz i have external data and more users to enter, this is the only way that external data doesn't go with error.

    It opens the same workbook, not 2 of the same... saves 1 and opens the same as read only.

    Let me know if there is a way to close a workbook with a msgbox displayed or userform please

  7. #7
    Forum Expert JLGWhiz's Avatar
    Join Date
    02-20-2011
    Location
    Florida, USA
    MS-Off Ver
    Windows 10, Excel 2013
    Posts
    2,070

    Re: Display message after workbook.open

    Under normal circumstances, the message box would display when called in the code, because it is part of the Windows application and not just on the Excel/VBA platform. I have been trying to understand what the rest of the code is doing that might cause the Windows application to ignore the call for the message box. I have tried to set up a couple of tests but cannot duplicate the condition. Everything I tried resulted in the message box displaying as it should. I have not tried what your code does, because I don't understand the logic of it. But I am pretty sure that the method you are using is related to the condition.

  8. #8
    Forum Contributor
    Join Date
    07-20-2015
    Location
    Covilhã
    MS-Off Ver
    2010
    Posts
    516

    Re: Display message after workbook.open

    Just test this in a normal module and see that After the file is opening, no msgbox is created..

    Please Login or Register  to view this content.
    Thanks for trying to help, it's really importing to have this working
    Last edited by brainzlp; 01-17-2016 at 07:37 PM.

  9. #9
    Forum Contributor
    Join Date
    07-20-2015
    Location
    Covilhã
    MS-Off Ver
    2010
    Posts
    516

    Re: Display message after workbook.open

    I've check and it's impossible. I created a new page and select it before open the workbook.

    Thanks anyway

+ 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. Macro to display a message before closing workbook
    By robertguy in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 01-11-2016, 01:32 AM
  2. [SOLVED] When open the workbook, show a message
    By damaple in forum Excel Programming / VBA / Macros
    Replies: 10
    Last Post: 11-03-2013, 12:30 AM
  3. [SOLVED] I need a message box to open up and display a message before printing.
    By Bobp84 in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 08-16-2012, 01:34 PM
  4. Answer message Yes to open workbook
    By debbiesh in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 03-15-2012, 10:43 AM
  5. How can I see if another user has a workbook open and display an error message?
    By messyjessyr in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 01-27-2012, 01:32 PM
  6. Display username in message box that has a file open
    By maacmaac in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 02-03-2010, 01:08 PM
  7. Display message box on open with conditions
    By maacmaac in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 07-08-2009, 03:45 PM
  8. [SOLVED] can i have a pop up reminder message when i open a workbook?
    By j jones in forum Excel - New Users/Basics
    Replies: 2
    Last Post: 11-16-2005, 04:10 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