Wrox Programmer Forums
Go Back   Wrox Programmer Forums > Microsoft Office > Excel VBA > Excel VBA
|
Excel VBA Discuss using VBA for Excel programming.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Excel VBA section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old December 15th, 2004, 06:41 PM
Authorized User
 
Join Date: Aug 2004
Posts: 17
Thanks: 0
Thanked 0 Times in 0 Posts
Default Calling procedures from another excel file

I am trying to create an Excel file that will be used as a front end program to open up several different Excel files in a sequential order and run procedures that have been created within each file.

So far I have created a userform in Excel that will open the Excel files, but now I need to know how to run the procedures in each file. Is this possible?

Jeff Armstrong
Sr. Systems Mgr
SBC Services, Inc.
__________________
Jeff Armstrong
Sr. Systems Mgr
SBC Services, Inc.
 
Old December 16th, 2004, 11:26 AM
Authorized User
 
Join Date: Aug 2004
Posts: 17
Thanks: 0
Thanked 0 Times in 0 Posts
Default

After searching for sometime on the web I found the answer. It was actually quite simple. The following line of code executes my procedure from another file:

Application.Run ("FileName.xls!ProcedureName")

Problem solved! Maybe this will help someone.

Jeff Armstrong
Sr. Systems Mgr
SBC Services, Inc.





Similar Threads
Thread Thread Starter Forum Replies Last Post
Calling procedures in other worksheets pakman Excel VBA 2 July 20th, 2005 08:28 AM
Calling a function from .vb file to aspx file !! NitinJoshi General .NET 4 February 10th, 2005 06:23 AM
Calling AS/400 Stored Procedures from VB.NET prasanthknair ADO.NET 0 January 19th, 2005 06:55 AM
Calling Oracle Stored Procedures booksnore2 General .NET 0 August 24th, 2004 02:08 PM
Calling Stored procedures with out parameters bansalh Access 1 November 25th, 2003 04:30 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.