Consulting

Results 1 to 4 of 4

Thread: Trigger macro when user opening any excel file

  1. #1

    Trigger macro when user opening any excel file

    Hi,

    My users are working in excel workbooks. I want a custom message box to be displayed before they close any excel workbook. The excel file opened by the user will not have any macro codes.

    How can i get this done?

  2. #2
    The user systems are not provided with personal.xls file to make the codes available centrally..

  3. #3
    You would need an addin that utilises a class module to capture application events. See:
    http://www.cpearson.com/Excel/AppEvent.aspx
    Regards,

    Jan Karel Pieterse
    Excel MVP jkp-ads.com

  4. #4
    See:
    www.jkp-ads.com/articles/distributemacro00.asp
    for an intro on making add-ins.
    Regards,

    Jan Karel Pieterse
    Excel MVP jkp-ads.com

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •