+ Reply to Thread
Results 1 to 8 of 8

show msgbox one time

  1. #1
    Registered User
    Join Date
    02-23-2019
    Location
    Belgium
    MS-Off Ver
    office 2013
    Posts
    9

    show msgbox one time

    Hey,
    I want to show an information msgbox only once (or 2 times) when I open a tab, each time I open the file

    Can someone help me further?

    thank you!

    Koen

  2. #2
    Forum Moderator davesexcel's Avatar
    Join Date
    02-19-2006
    Location
    Regina
    MS-Off Ver
    MS 365
    Posts
    13,474

    Re: show msgbox one time

    Check out the workbook_open event and the worksheet_activate event

  3. #3
    Registered User
    Join Date
    02-23-2019
    Location
    Belgium
    MS-Off Ver
    office 2013
    Posts
    9

    Re: show msgbox one time

    Indeed, but I want this info to be shown only once when I open a tab. So if I open this tab twice, the msgbox can no longer be shown.
    I open the file a second time and I open this tab again, then the msgbox can be shown once again, no matter how many times I open this tab.

  4. #4
    Forum Guru bakerman2's Avatar
    Join Date
    10-03-2012
    Location
    Antwerp, Belgium
    MS-Off Ver
    MO Prof Plus 2016
    Posts
    6,907

    Re: show msgbox one time

    In a standard module.
    Please Login or Register  to view this content.
    In worksheet module.
    Please Login or Register  to view this content.
    Avoid using Select, Selection and Activate in your code. Use With ... End With instead.
    You can show your appreciation for those that have helped you by clicking the * at the bottom left of any of their posts.

  5. #5
    Registered User
    Join Date
    02-23-2019
    Location
    Belgium
    MS-Off Ver
    office 2013
    Posts
    9

    Re: show msgbox one time

    No, now i see the box, click 'OK' and then a new msgbox 'done'.
    when i open the tab again, the msgbox shows again and thats not what i want.
    Please Login or Register  to view this content.
    Last edited by davesexcel; 02-24-2019 at 07:56 AM.

  6. #6
    Forum Moderator davesexcel's Avatar
    Join Date
    02-19-2006
    Location
    Regina
    MS-Off Ver
    MS 365
    Posts
    13,474

    Re: show msgbox one time

    Put something on the sheet, if that cell = something, then show msgbox, if it = something else, then don't show the msgbox.

    When you close the workbook, then make the cell = something before saving

  7. #7
    Forum Expert XLent's Avatar
    Join Date
    10-13-2010
    Location
    Northumberland, UK
    MS-Off Ver
    various
    Posts
    2,704

    Re: show msgbox one time

    alternatively, a static variable may suffice?

    Please Login or Register  to view this content.

  8. #8
    Forum Guru bakerman2's Avatar
    Join Date
    10-03-2012
    Location
    Antwerp, Belgium
    MS-Off Ver
    MO Prof Plus 2016
    Posts
    6,907

    Re: show msgbox one time

    Als je code niet begrijpt vraag er dan achter ipv te zeggen dat het niet werkt.

    Please Login or Register  to view this content.

+ 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. [SOLVED] Check Date and Time in range and show Msgbox
    By marreco in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 08-04-2016, 09:08 AM
  2. msgbox to show the result
    By nissin00 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 09-24-2015, 05:31 AM
  3. [SOLVED] show a msgbox and autoclose in 3 sec
    By mrkhchan in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 08-09-2014, 12:28 PM
  4. [SOLVED] Show sum value of range in msgbox
    By TimmerSuds in forum Excel General
    Replies: 5
    Last Post: 06-18-2014, 06:27 AM
  5. [SOLVED] how to add counter in msgbox to show remain times the message will show vba code
    By sspreyer in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 08-25-2013, 06:46 AM
  6. [SOLVED] Only show msgbox once
    By shiftyspina in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 05-15-2013, 11:25 AM
  7. [SOLVED] How MsgBox can show address?
    By Milind in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 09-29-2005, 09:05 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