+ Reply to Thread
Results 1 to 3 of 3

Pop up when open excel file

  1. #1
    Registered User
    Join Date
    08-27-2009
    Location
    London, England
    MS-Off Ver
    Excel 2003
    Posts
    39

    Pop up when open excel file

    hi,

    can i create a pop up when i open an excel file?

    example when i open abc.xls, a msgbox appear saying "Welcome" or running some function?
    Last edited by soul_krasty; 07-20-2010 at 12:16 AM.

  2. #2
    Forum Expert Paul's Avatar
    Join Date
    02-05-2007
    Location
    Wisconsin
    MS-Off Ver
    2016/365
    Posts
    6,885

    Re: Pop up when open excel file

    Hi Soul_Krasty,

    Quick answer: Yes, you can.

    Not-so-quick answer: It depends on your workbook and who is going to use it. For safety reasons, most people have Excel prompt them to enable macros when opening a workbook (or, at least I hope they do). Once macros are enabled a pop-up can certainly appear by adding the necessary code to the 'Workbook_Open' event in the VB Editor.

    For example:

    Please Login or Register  to view this content.
    It could obviously do a lot more than just pop-up a message, but hopefully that gets you going.

  3. #3
    Registered User
    Join Date
    08-27-2009
    Location
    London, England
    MS-Off Ver
    Excel 2003
    Posts
    39

    Re: Pop up when open excel file

    i put it under ThisWorkbook and it work fine

    thanks..

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

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