+ Reply to Thread
Results 1 to 3 of 3

Workbook Events for any Workbook

  1. #1
    Registered User
    Join Date
    01-15-2008
    Posts
    66

    Workbook Events for any Workbook

    Hi Folks,
    My inexperience has created quite a dilemma. I have Excel 2000 and have written code for one workbook through the “This Workbook” section of VB. I was using the “New Sheet”, “Selection_Change” and TRIED the “Workbook Open” events. I have a feeling I am going about this all-wrong.
    My code works great for the coded workbook adding sheets etc. My project has expanded to using the same code with any named workbook. I guess I just don’t have the basic understanding of the structure I should use. How should I approach having my code in the background of any opened workbook? An addin seems attractive. I think I need an understanding of these workbook events outside of the workbook objects. How can I write code for these events for any active workbook?

    Thanks,
    DS
    Last edited by dsexpress; 10-18-2008 at 05:46 PM.

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

    You can do what you're seeking by using your "personal.xls" file. Please see the following site from Microsoft explaining the process. You can also search the web for other uses of personal.xls in Excel.

    http://office.microsoft.com/en-us/ex...872961033.aspx

    If you're looking to share your macros with others, an add-in would be better. There are many examples of how to create an add-in on the web and some in this forum as well.

  3. #3
    Registered User
    Join Date
    01-15-2008
    Posts
    66
    Thanks for your help!

+ 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. Run macro in workbook B from a macro in Workbook A
    By Wizz in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 05-28-2008, 08:41 AM
  2. Macro moves out of Active WorkBook. Why?
    By ulfah in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 04-19-2008, 01:14 PM
  3. linking to open workbook
    By Mile029 in forum Excel General
    Replies: 1
    Last Post: 05-15-2007, 06:46 PM
  4. workbook events
    By Dennisli2000 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 05-08-2007, 11:14 AM
  5. Can someone explain this macro to me?
    By gav_69 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 03-29-2007, 06:04 AM

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