Visual Basic Code , VB.NET Code, VB Code
  Home   :  Code   :  Forums   :  Submit   :  Mailing List   :  About   :  Contact


Using Application.Run to launch a macro in another workbook but processing halts when a msgbox comes...


Using Application.Run to launch a macro in another workbook but...

Author
Message
Catman
Catman
Forum God
Forum God (680 reputation)Forum God (680 reputation)Forum God (680 reputation)Forum God (680 reputation)Forum God (680 reputation)Forum God (680 reputation)Forum God (680 reputation)Forum God (680 reputation)Forum God (680 reputation)

Group: Forum Members
Posts: 2, Visits: 13
Here is a better explaination of the challenge I need help with.  How do I get past the MsgBox "This is Book2" in an automated way?

In Workbook1:
Sub B1M1()
Application.Run "'" & "Book2.xls'!B2M1"
MsgBox "This is Book1, returned from Bk2"
End Sub

In Workbook2:
Sub B2M1()
MsgBox "This is Book2"
End Sub

From earlier post (FYI):

Just guessing but am looking at the RUN Method documentation (F1 in VB editor) and it shows how you can pass two variables, should I pass a SendKey to answer the MsgBox?   Last last night I reported that processing was not passing back to the host workbook but I just tested this again and it is passing back. 

Edited
11/19/2008 by Catman
GO


Similar Topics


Reading This Topic


Login
Existing Account
Email Address:


Password:


Social Logins

Select a Forum....

















A1VBCode Forums


Search