Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 6
Default Msgbox in Excel from Access (Correct)

How can I show a Msgbox in EXCEL from VBA code in Access?

Note: Inputbox no problem.

--
Sincerilly, thanks a lot.

Oscar Picos
Office Autom
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,272
Default Msgbox in Excel from Access (Correct)

Oscar,

It is difficult to imagine what problem you are having with a MsgBox if
Inputbox is good.

It should just be something like

ans = MsgBox("testing",vbYesNo)

Is your code being run in Access, or is it in Excel?

--

HTH

RP
(remove nothere from the email address if mailing direct)


"Picos Autom" wrote in message
...
How can I show a Msgbox in EXCEL from VBA code in Access?

Note: Inputbox no problem.

--
Sincerilly, thanks a lot.

Oscar Picos
Office Autom



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 6
Default Msgbox in Excel from Access (Correct)

Bob:

Sorry for my weak explication (and my english too), my problem is:

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 form another
application like Access?
--
Sincerilly, thanks a lot.

Oscar Picos
Office Autom


"Bob Phillips" wrote:

Oscar,

It is difficult to imagine what problem you are having with a MsgBox if
Inputbox is good.

It should just be something like

ans = MsgBox("testing",vbYesNo)

Is your code being run in Access, or is it in Excel?

--

HTH

RP
(remove nothere from the email address if mailing direct)


"Picos Autom" wrote in message
...
How can I show a Msgbox in EXCEL from VBA code in Access?

Note: Inputbox no problem.

--
Sincerilly, thanks a lot.

Oscar Picos
Office Autom




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
Problem with Excel getting correct # of records back from Access JoeM[_3_] Excel Worksheet Functions 0 April 1st 10 02:16 PM
Problem with Excel getting correct # of records back from Access JoeM[_3_] Excel Discussion (Misc queries) 0 March 31st 10 10:35 PM
How to correct cannot access directory 'J:\\'. ex_usmc_doc Excel Discussion (Misc queries) 1 February 1st 10 03:09 PM
data not importing from access into Excel in the correct order bonsaimarles Excel Discussion (Misc queries) 3 December 31st 08 11:23 PM
Msgbox in Excel from Access Picos Autom Excel Programming 0 August 3rd 05 09:58 PM


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