Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

run a macro from within another macro

Posted on 2014-11-25
3
Medium Priority
?
107 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 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

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

This article descibes how to create a connection between Excel and SAP and how to move data from Excel to SAP or the other way around.
After seeing numerous questions for Dynamic Data Validation I notice that most have used Visual Basic to solve the problem. This suggestion is purely formula based and can be used in multiple rows.
This Micro Tutorial will demonstrate how to use longer labels with horizontal bar charts instead of the vertical column chart.
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.

719 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