Solved

run a macro from within another macro

Posted on 2014-11-25
3
74 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 48

Accepted Solution

by:
Rgonzo1971 earned 500 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

Do You Know the 4 Main Threat Actor Types?

Do you know the main threat actor types? Most attackers fall into one of four categories, each with their own favored tactics, techniques, and procedures.

Join & Write a Comment

Dealing with unintended Excel Active-X resizing quirks (VBA code simulates "self correction") David Miller (dlmille) Intro Not everyone is a fan of Active-X controls in spreadsheets (as opposed to the UserForm approach, the older Form controls …
Introduction While answering a recent question (http:/Q_27311462.html), I created an alternative function to the Excel Concatenate() function that you might find useful.  I tested several solutions and share the results in this article as well as t…
The viewer will learn how to simulate a series of sales calls dependent on a single skill level and learn how to simulate a series of sales calls dependent on two skill levels. Simulating Independent Sales Calls: Enter .75 into cell C2 – “skill leve…
The viewer will learn how to use a discrete random variable to simulate the return on an investment over a period of years, create a Monte Carlo simulation using the discrete random variable, and create a graph to represent the possible returns over…

708 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

Need Help in Real-Time?

Connect with top rated Experts

15 Experts available now in Live!

Get 1:1 Help Now