Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 6
Default Run Module1 first then automatically run Module2

This is probably simple but I have two modules that I had to break up
because it was too large. Anyway, I cannot figure out what object or
syntax or whatever to use to go to Module2 when it is done with Module
one. Could someone point me in the right direction.

Thanks in advance,

Bowbender

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,272
Default Run Module1 first then automatically run Module2

Not modules but macros.

Call the macros in Module 2 from the last macro in module 1.

--
HTH

Bob Phillips

wrote in message
ups.com...
This is probably simple but I have two modules that I had to break up
because it was too large. Anyway, I cannot figure out what object or
syntax or whatever to use to go to Module2 when it is done with Module
one. Could someone point me in the right direction.

Thanks in advance,

Bowbender



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 6
Default Run Module1 first then automatically run Module2

Sorry bout that, I am in no way any sort of expert. How would you call
it exactly, I am really lost here.

Thanks

  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2,069
Default Run Module1 first then automatically run Module2

Sub RunAllMacros()
Call Macro1 '(or whatever the first macro name is)
Call Macro2 '(or whatever the second macro is)
end sub

ps - Macros are stored in modules, you cannot call a module... only a macro

hope this helps


" wrote:

Sorry bout that, I am in no way any sort of expert. How would you call
it exactly, I am really lost here.

Thanks


  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 6
Default Run Module1 first then automatically run Module2

Sorry, found it. It seems if you place the name of the macro inside
the other, it will run it. Man do I feel dumb.

Thanks again.

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Automatically insert time in excel but not automatically updated NeueN Excel Worksheet Functions 4 December 25th 08 07:29 AM
Install ThisWorkbook and Module1 files with batch script Mark Excel Programming 3 August 30th 05 02:49 PM
Module1 vs Thisworkbook for Macro Craigm[_16_] Excel Programming 4 June 28th 05 01:17 PM
UDF error when renaming Module1 RonaldF Excel Programming 4 November 27th 04 05:21 PM
size/space problem with module1 in VB even though it is empty mcpheat Excel Programming 1 June 10th 04 01:06 PM


All times are GMT +1. The time now is 07:00 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"