Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3,355
Default Reliably activate PowerPoint, do something, Activate Excel

I've tried using AppActivate but it's not reliably activating the
applications. Is there something I need to do so that it finds the app each
and every time. FWIW, I'm moving back and forth between PPTApp and XLApp.

In addition, I'd like to display a MsgBox in PowerPoint when I'm running the
code from Excel. How do I do that? MsgBox, puts the MSGBOX over the Excel
application.

Thanks,

Barb Reinhardt
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3,986
Default Reliably activate PowerPoint, do something, Activate Excel

Hi Barb, it has been a while since I worked across applications but I do
remember that the appObject has to be specified for commands to be executed
in the called application. Otherwise, it defaults to the host application.
Something like Excel when you don't specify a certain sheet, it defaults to
the active sheet. I seem to remember using the With statement quite a bit to
avoid having to retype the whole appObj phrase each time. I used the
CreateObject method when I used to do those things. I had not even heard of
Scripting back then. Anyhow, that's about as much as I can contribute.

"Barb Reinhardt" wrote:

I've tried using AppActivate but it's not reliably activating the
applications. Is there something I need to do so that it finds the app each
and every time. FWIW, I'm moving back and forth between PPTApp and XLApp.

In addition, I'd like to display a MsgBox in PowerPoint when I'm running the
code from Excel. How do I do that? MsgBox, puts the MSGBOX over the Excel
application.

Thanks,

Barb Reinhardt

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
Windows().Activate vs Workbooks().Activate Gary''s Student Excel Programming 4 November 6th 06 02:01 PM
VBA - Activate a PowerPoint presentation in a specific Excel windo Dan Casey Excel Programming 0 May 11th 06 11:22 PM
Workbook.Activate / Window.Activate problem Tim[_44_] Excel Programming 3 February 3rd 06 11:38 PM


All times are GMT +1. The time now is 05:38 AM.

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"