+ Reply to Thread
Results 1 to 4 of 4

Embedd startup module in application

  1. #1
    Registered User
    Join Date
    01-18-2005
    Posts
    24

    Embedd startup module in application

    Is it possible to have a startup module embedded into application, so whenever you open any file, the code would run?

    Thanks,
    Viktor.

  2. #2
    Forum Contributor SOS's Avatar
    Join Date
    01-26-2004
    Location
    Glasgow, Scotland
    MS-Off Ver
    Excel 2003
    Posts
    327
    Hi Vikxcel,

    Place your module your Personal.xls and make sure it is used as a Workbook_OnOpen module then that should do what you ask (to a degree).

    Example:

    I placed this code:

    Please Login or Register  to view this content.
    into the "This Workbook" section of my Personal.xls, colsed Excel, reopened and saw the Message Box.

    But that only works the FIRST tine you open Excel. If you then open another file (in the same Excel session) that code won't run
    Last edited by SOS; 06-10-2008 at 02:44 PM.
    Hope this helps

    Seamus

  3. #3
    Registered User
    Join Date
    01-18-2005
    Posts
    24
    Quote Originally Posted by SOS
    Hi Vikxcel,

    Place your module your Personal.xls and make sure it is used as a Workbook_OnOpen module then that should do what you ask (to a degree).

    Example:

    I placed this code:

    Please Login or Register  to view this content.
    into the "This Workbook" section of my Personal.xls, colsed Excel, reopened and saw the Message Box.

    But that only works the FIRST tine you open Excel. If you then open another file (in the same Excel session) that code won't run
    Thanks SOS, everything makes sense, but i can't find this personal.xls you're talking about.

  4. #4
    Registered User
    Join Date
    01-18-2005
    Posts
    24
    Quote Originally Posted by Vikxcel
    Thanks SOS, everything makes sense, but i can't find this personal.xls you're talking about.
    nevermind, i got it, you're supposed to make a personal.xls file and drop it in the xlstart folder. Thanks Sos.

+ 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