Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 258
Default Remote module call

Can you call a module from another Workbook (which is open)?

Lets say I have a module in workbook1 and I want to call a module called
Sort in workbook2. The Sort module would perform it's function in workbook2
(ideally in the background without actually switching to workbook2)


  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default Remote module call

Application.Run "Workbook2.xls!Sort"

Depends on how the macro is written.

If you qualify all your references, then there is probably no reason to
activate workbook2. If you use select and activate, then you would.

--
Regards,
Tom Ogilvy


"Patrick Simonds" wrote in message
...
Can you call a module from another Workbook (which is open)?

Lets say I have a module in workbook1 and I want to call a module called
Sort in workbook2. The Sort module would perform it's function in

workbook2
(ideally in the background without actually switching to workbook2)




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
The remote procedure call failed. (Exception from HRESULT: 0x80070 Avinash [email protected] Excel Worksheet Functions 0 December 22nd 08 12:20 PM
How to call a sub from UserForm Module Myles[_58_] Excel Programming 1 March 31st 06 04:40 AM
Call a Module mb Excel Programming 2 October 26th 05 01:12 AM
Call other sub in the same module yangyh[_4_] Excel Programming 1 September 11th 05 09:24 AM
remote module karin Excel Programming 2 May 14th 04 08:06 PM


All times are GMT +1. The time now is 09:23 AM.

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"