Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2
Default run a procedure in 1 wkbk from another wkbk

I am trying to have my procedure open up another workbook file and
then my procedure needs to run procedure(s) in the the opened file then
return control to my main procedure.

Below are the call statements I have tried along with their error messages:

Call cmdRetrieveData1_Click (error: sub or function not define)
(but it is defined in the other open workbook and the name is correct!)

Call [Newfile.xls].[Newfile.vbp].[Module4].cmdRetrieveData1_Click
(error: subscript out of range)

Help! I need to resolve quickly.



  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1,120
Default run a procedure in 1 wkbk from another wkbk


Application.Run "OtherBook!myMacro.xls"

--
HTH

Bob Phillips

"carenla" wrote in message
...
I am trying to have my procedure open up another workbook file and
then my procedure needs to run procedure(s) in the the opened file then
return control to my main procedure.

Below are the call statements I have tried along with their error

messages:

Call cmdRetrieveData1_Click (error: sub or function not define)
(but it is defined in the other open workbook and the name is correct!)

Call [Newfile.xls].[Newfile.vbp].[Module4].cmdRetrieveData1_Click
(error: subscript out of range)

Help! I need to resolve quickly.





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
info mtg criteria from one wkbk to another bkinman Excel Discussion (Misc queries) 2 March 7th 09 05:38 AM
Adding Row on a protected wkbk Lisa[_3_] Excel Discussion (Misc queries) 0 March 14th 08 06:42 PM
Can't Alt Tab from wkbk to wkbk Help! Paulg Excel Discussion (Misc queries) 1 August 15th 06 05:34 PM
HowTo add and name 2 wks to wkbk Dan Excel Programming 2 March 5th 05 09:36 PM
Call subs from another wkbk? Huyeote[_3_] Excel Programming 4 September 1st 04 01:39 PM


All times are GMT +1. The time now is 02:59 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"