Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 35,218
Default call external macro

Remember that the other workbook has to be open--so drop the drive/path stuff.

sylvain wrote:

Hello Dave,

Thanks a lot because I was looking for a similar problem,
something like :
x = Application.Run("'D:\...\YourAdd-in.xla'!YourSubName", Arg1, Arg2)

and it wasn't working while I didn't use the "'" character...

Best regards, Sylvain

Dave Peterson a écrit :
What did you try?

I would have guessed that:
x = Application.Run("'YourAdd-in.xla'!YourSubName", Arg1, Arg2)

would have worked fine.

gm139 wrote:

I have tried your second suggestion, that is exactly what I would like
to do.

In my .xla add-in I have a subroutine called "Import".

When I try to run it from my workbook I get an error.

What is the syntax to be used to call a sub or function in an xla
file?

I have tried several different syntax but no one works.

--
gm139
------------------------------------------------------------------------
gm139's Profile: http://www.excelforum.com/member.php...o&userid=26951
View this thread: http://www.excelforum.com/showthread...hreadid=510211




--

Dave Peterson
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
call external function DavidB Excel Worksheet Functions 2 March 16th 09 09:04 PM
how to call a reference to a cell in external file jose Excel Worksheet Functions 2 February 27th 07 09:59 AM
Call external program in Excel Macro Ivan Excel Programming 3 January 23rd 06 10:56 AM
Unable to call external program/dll pipo Excel Programming 1 May 30th 05 08:11 AM
External function call Kevin Excel Programming 1 April 6th 04 06:35 AM


All times are GMT +1. The time now is 11:56 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"