Solved

run a macro from within another macro

Posted on 2014-11-25
3
92 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
3 Comments
 
LVL 52

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

Online Training Solution

Drastically shorten your training time with WalkMe's advanced online training solution that Guides your trainees to action. Forget about retraining and skyrocket knowledge retention rates.

Question has a verified solution.

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

Access developers frequently have requirements to interact with Excel (import from or output to) in their applications.  You might be able to accomplish this with the TransferSpreadsheet and OutputTo methods, but in this series of articles I will di…
This article describes how you can use Custom Document Properties to store settings and other information in your workbook so that they will be available the next time you open the workbook.
This Micro Tutorial will demonstrate how to create pivot charts out of a data set. I also added a drop-down menu which allows to choose from different categories in the data set and the chart will automatically update.
Many functions in Excel can make decisions. The most simple of these is the IF function: it returns a value depending on whether a condition you describe is true or false. Once you get the hang of using the IF function, you will find it easier to us…

635 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