+ Reply to Thread
Results 1 to 3 of 3

Module to execute 3 modules

  1. #1
    Forum Contributor
    Join Date
    04-22-2014
    Location
    Turrialba, Costa Rica
    MS-Off Ver
    Excel 2010
    Posts
    108

    Module to execute 3 modules

    Hello.

    In a workbook I have 3 modules (mod1, mod2 and mod3) for 3 worksheets (Sheet1, sheet2 and sheet3).
    I need a button to execute the 3 modules. I have been looking out for a solution for this. I tried a lot but unable to do it.
    So, I am wondering is it possible with a module to execute more than one module.

    Any help is welcome

  2. #2
    Forum Guru
    Join Date
    07-25-2011
    Location
    Florida
    MS-Off Ver
    Excel 2003
    Posts
    9,659

    Re: Module to execute 3 modules

    There are Modules and there are Macros which are two different things. It sounds like you've conflated Module with Macro. You wouldn't execute a Module.

    This Macro will run three other macros called Macro1, Macro2, and Macro3.

    Please Login or Register  to view this content.
    Surround your VBA code with CODE tags e.g.;
    [CODE]your VBA code here[/CODE]
    The # button in the forum editor will apply CODE tags around your selected text.

  3. #3
    Forum Contributor
    Join Date
    04-22-2014
    Location
    Turrialba, Costa Rica
    MS-Off Ver
    Excel 2010
    Posts
    108

    Re: Module to execute 3 modules

    I moved the code from each module to each macro and the Macro_All run the 3 macros.
    Thank you very much indeed.

+ 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] VBA: use input box answer from a module to apply to other subsequent modules
    By Muktar888 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 05-16-2017, 05:59 AM
  2. Replies: 2
    Last Post: 02-15-2015, 11:36 AM
  3. execute vba module by Enter key press
    By pasztamang in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 05-30-2014, 01:13 AM
  4. [SOLVED] VBA code to execute a module in a different workbook
    By Need_help_please in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 04-06-2012, 06:27 AM
  5. Execute VB module from Excel
    By femer2002 in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 10-21-2011, 11:20 AM
  6. Replies: 4
    Last Post: 12-11-2005, 08:00 PM
  7. Managing Modules/Macros - More than one Module FOLDER?
    By Hari Prasadh in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 06-30-2005, 10:05 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