Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

run a macro from within another macro

Posted on 2014-11-25
3
Medium Priority
?
125 Views
Last Modified: 2014-11-25
I have looked through EE but cannot find the solution to my problem.

I have a Macro and at a certain point I need to open another file and run the macro that is in that file then come back to the initial Macro in the original file.

Obviously I can open the file ok but how do I call the macro that is in the file that I open?

The macro in the file I open is called cassDothe work.

Is this enough info to be able to assist me?

thanks
0
Comment
Question by:Jagwarman
  • 2
3 Comments
 
LVL 53

Accepted Solution

by:
Rgonzo1971 earned 2000 total points
ID: 40464080
Hi,

pls try

Application.Run ("'Your File.xlsm'!cassDotheWork")

Regards
0
 

Author Comment

by:Jagwarman
ID: 40464163
Thanks Rgonzo that runs the Macro. Unfortunately it does not comeback to the original macro, is it possible to do that or not?

My original question was "open another file and run the macro that is in that file then come back to the initial Macro in the original file."
0
 

Author Comment

by:Jagwarman
ID: 40464179
Actually Rgonzo I can re-jig my original Macro so I can get away without coming back to the original.

Many thanks once again.
0

Featured Post

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Do you use a spreadsheet like Microsoft's Excel?  Have you ever wanted to link out to a non excel file on your computer or network drive?  This is the way I found to do it!
Windows Explorer lets you open cabinet (cab) files like any other folder. In VBA you can easily handle normal files and folders, but opening and indeed creating cabinet files takes a lot more - and that's you'll find here.
This Micro Tutorial will demonstrate in Microsoft Excel how to add style and sexy appeal to horizontal bar charts.
Finds all prime numbers in a range requested and places them in a public primes() array. I've demostrated a template size of 30 (2 * 3 * 5) but larger templates can be built such 210  (2 * 3 * 5 * 7) or 2310  (2 * 3 * 5 * 7 * 11). The larger templa‚Ķ

963 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question