MsgBox show in Instance of Excel

P

Picos Autom

A procedure in Access automate an instance of Excel with this code:

Set xlApp = New Excel.Application
xlApp.Visible = True
xlApp.Workbooks.Open "C:\Trial.xls"
xlapp.InputBox "Hello" 'This work but doesn't the right solution.
xlApp.MsgBox "Hello" 'This not work, and is the right solution.

Now, How can I show that message in Excel, with code from another
application like Access?
 
Top