Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default HELP! Calling subroutine in different workbook


Hi
I am trying to call a subroutine test() which resides in Module1 of a
loaded add-in 'test.xla'.

I am calling it from a module in my current workbook, but I cannot get
it to run - instead I keep getting

Run time error 424 Object Required

I would be enormously grateful for any help!!

Chris

The code is:

IN MY CURRENT WORKBOOK:

-Sub testnow()
[test.xls].[Module1].test
End Sub-

IN MODULE1 OF TEST.XLA:

-Sub test()
MsgBox "test successful"
End Sub-


--
ChrisWalker
------------------------------------------------------------------------
ChrisWalker's Profile: http://www.excelforum.com/member.php...o&userid=32022
View this thread: http://www.excelforum.com/showthread...hreadid=517739

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 5,302
Default HELP! Calling subroutine in different workbook

Hi Chris,

Try:

Application.Run "'Test.xla'!Test"


---
Regards,
Norman



"ChrisWalker"
wrote in message
...

Hi
I am trying to call a subroutine test() which resides in Module1 of a
loaded add-in 'test.xla'.

I am calling it from a module in my current workbook, but I cannot get
it to run - instead I keep getting

Run time error 424 Object Required

I would be enormously grateful for any help!!

Chris

The code is:

IN MY CURRENT WORKBOOK:

-Sub testnow()
[test.xls].[Module1].test
End Sub-

IN MODULE1 OF TEST.XLA:

-Sub test()
MsgBox "test successful"
End Sub-


--
ChrisWalker
------------------------------------------------------------------------
ChrisWalker's Profile:
http://www.excelforum.com/member.php...o&userid=32022
View this thread: http://www.excelforum.com/showthread...hreadid=517739



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,272
Default HELP! Calling subroutine in different workbook

Application.Run "'test.xla'!test"

--
HTH

Bob Phillips

(remove nothere from email address if mailing direct)

"ChrisWalker"
wrote in message
...

Hi
I am trying to call a subroutine test() which resides in Module1 of a
loaded add-in 'test.xla'.

I am calling it from a module in my current workbook, but I cannot get
it to run - instead I keep getting

Run time error 424 Object Required

I would be enormously grateful for any help!!

Chris

The code is:

IN MY CURRENT WORKBOOK:

-Sub testnow()
[test.xls].[Module1].test
End Sub-

IN MODULE1 OF TEST.XLA:

-Sub test()
MsgBox "test successful"
End Sub-


--
ChrisWalker
------------------------------------------------------------------------
ChrisWalker's Profile:

http://www.excelforum.com/member.php...o&userid=32022
View this thread: http://www.excelforum.com/showthread...hreadid=517739



  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default HELP! Calling subroutine in different workbook


Thanks guys, works a treat.


--
ChrisWalker
------------------------------------------------------------------------
ChrisWalker's Profile: http://www.excelforum.com/member.php...o&userid=32022
View this thread: http://www.excelforum.com/showthread...hreadid=517739

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
Calling a subroutine in a loop Jeff@DE Excel Programming 1 January 9th 06 09:56 AM
Calling a Public Subroutine in a Different Workbook Raul Excel Programming 2 August 24th 05 04:27 AM
calling a subroutine outside a spreadsheet dino Excel Programming 5 June 11th 04 06:14 PM
Function Calling Subroutine Curare Excel Programming 1 February 24th 04 07:11 PM
Calling the Solver via a subroutine James[_8_] Excel Programming 1 July 10th 03 01:08 AM


All times are GMT +1. The time now is 09:14 PM.

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

About Us

"It's about Microsoft Excel"