+ Reply to Thread
Results 1 to 6 of 6

Macro to populate Event-Driven macros to certain sheets

  1. #1
    Registered User
    Join Date
    11-27-2012
    Location
    Toronto
    MS-Off Ver
    Excel 2010
    Posts
    15

    Macro to populate Event-Driven macros to certain sheets

    Hi,

    I run a macro every day which creates a given output. I want to add event-driven macros to some of the sheets in my workbook, but I want this to be done automatically when I run my initial macro.

    Is there any way I can have a macro add event-driven macros that I have already created to certain sheets?

    Let me know if you need additional information.

    Thank you,

    T

  2. #2
    Forum Guru Norie's Avatar
    Join Date
    02-02-2005
    Location
    Stirling, Scotland
    MS-Off Ver
    Microsoft Office 365
    Posts
    19,643

    Re: Macro to populate Event-Driven macros to certain sheets

    Are you creating new worksheets every day?
    If posting code please use code tags, see here.

  3. #3
    Registered User
    Join Date
    11-27-2012
    Location
    Toronto
    MS-Off Ver
    Excel 2010
    Posts
    15

    Re: Macro to populate Event-Driven macros to certain sheets

    Yes, the sheets where I want to add the event driven macro are created daily. I work on a new workbook with one input sheet every day.

    Also, the macro is run from a separate workbook than the output. The macro creates a new book for my output.
    Last edited by dicenn; 03-27-2014 at 09:28 AM.

  4. #4
    Forum Guru Norie's Avatar
    Join Date
    02-02-2005
    Location
    Stirling, Scotland
    MS-Off Ver
    Microsoft Office 365
    Posts
    19,643

    Re: Macro to populate Event-Driven macros to certain sheets

    You could use code to create the event-driven code but it would be far easier to use a template or use workbook level event code.

  5. #5
    Registered User
    Join Date
    11-27-2012
    Location
    Toronto
    MS-Off Ver
    Excel 2010
    Posts
    15

    Re: Macro to populate Event-Driven macros to certain sheets

    Template may be best in this case since the workbook level event code would still have to be added to the new workbook created by the macro (right?).

    Thanks,

    T

  6. #6
    Forum Guru Norie's Avatar
    Join Date
    02-02-2005
    Location
    Stirling, Scotland
    MS-Off Ver
    Microsoft Office 365
    Posts
    19,643

    Re: Macro to populate Event-Driven macros to certain sheets

    Well you could use a template workbook.

+ 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] Event Driven checkbox. Chosing one is erasing the others
    By ChemistB in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 07-30-2012, 05:07 PM
  2. [SOLVED] Need to populate sheets from database export: VLOOKUP, macros, pivottables?
    By soleron in forum Excel Programming / VBA / Macros
    Replies: 11
    Last Post: 07-24-2012, 06:32 PM
  3. Event Driven Code
    By edwardt4482 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 10-26-2007, 07:45 PM
  4. Difference between an event driven macro and a module macro
    By RamblinWreck in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 07-18-2007, 03:42 PM
  5. help with an event driven sub argument please
    By Mark Dvorkin in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 07-17-2005, 10:05 PM

Tags for this Thread

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