+ Reply to Thread
Results 1 to 3 of 3

Pop-up message if Workbook opened between certain times

  1. #1
    Registered User
    Join Date
    06-30-2013
    Location
    England
    MS-Off Ver
    Excel 2016
    Posts
    24

    Pop-up message if Workbook opened between certain times

    Hey all,

    I was wondering if you could possibly help me with this..

    I'm wanting to display a Popup message if the workbook is opened between the hours of 8:30am and 9:30am
    How do I go about doing this?

    Many thanks
    Last edited by Lifeless; 01-21-2016 at 04:09 PM.

  2. #2
    Forum Expert sourabhg98's Avatar
    Join Date
    10-22-2014
    Location
    New Delhi, India
    MS-Off Ver
    Excel 2007, 2013
    Posts
    1,899

    Re: Pop-up message if Workbook opened between certain times

    Hey there,
    Yes that is possible.
    Check attached.

    To run a macro you need to follow these steps-

    Save and close all open workbooks.
    Open a new workbook, and then start the Visual Basic Editor (press ALT+F11).
    Press CTRL+R to switch to the Project Explorer window.
    In the Project Explorer window, right-click the ThisWorkbook object, and click View Code on the shortcut menu.
    In the module, type the following code:


    Please Login or Register  to view this content.
    Hope this helps!!

    Have a Great Day!!
    Attached Files Attached Files
    Happy to Help

    How to upload excel workbooks at this forum - http://www.excelforum.com/the-water-...his-forum.html

    "I don't get things easily, so please be precise and elaborate"

    If someone's post has helped you, thank by clicking on "Add Reputation" below the post.
    If your query is resolved please mark the thread as "Solved" from the "Thread Tools" above.

    Sourabh

  3. #3
    Registered User
    Join Date
    06-30-2013
    Location
    England
    MS-Off Ver
    Excel 2016
    Posts
    24

    Re: Pop-up message if Workbook opened between certain times

    Brilliant thanks +rep mate

    Sorry to be a pain, how would I edit this to display the same pop-up between those times however this time when the user attempts to "save" the file between those times.

    EDIT Never mind, I managed to figure it out. Thanks for your help!
    Last edited by Lifeless; 01-21-2016 at 04:08 PM.

+ 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] Counting how many times a workbook has been opened and by which user
    By rv02 in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 04-01-2015, 09:03 AM
  2. Use a macro to extract cell data from opened workbook to new opened workbook
    By BrianTFC in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 01-26-2014, 01:35 PM
  3. Pop up read only/notify message when workbook is allready opened
    By Snoopy2003 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 11-25-2012, 06:22 PM
  4. Macro that sets maximum number of times a workbook is opened
    By Mark1011 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 09-26-2012, 08:41 AM
  5. welcome message once a workbook is opened
    By prajesh in forum Excel General
    Replies: 16
    Last Post: 11-18-2011, 03:26 AM
  6. RE: Count numbers of times workbook opened
    By Jim Thomlinson in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 06-23-2006, 09:20 AM
  7. Message Box to appear when workbook is opened
    By aallard in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 02-02-2005, 01:01 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