Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default control other applications

i have an excel macro that has several variables with values
associated with them. I want to open another non office application
and send the variable values to that other application. the other
application was written in vba and shows on the macjine as xxxx.exe.
i can open the other application from the excel macro, but how do i
make it an object towhich i can send the data?
many thanks for any assistance.
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 108
Default control other applications

Roedd <<l. britton wedi ysgrifennu:

i have an excel macro that has several variables with values
associated with them. I want to open another non office application
and send the variable values to that other application. the other
application was written in vba and shows on the macjine as xxxx.exe.
i can open the other application from the excel macro, but how do i
make it an object towhich i can send the data?
many thanks for any assistance.


By "written in vba" I presume you mean VB4 or 5 or 6. In order to control
the application via OLE Automation (COM) the application would have to have
been written as an OLE Server (or ActiveX exe, as they became known). If it
wasn't, you're out of luck. In the VBE in Excel, select Tools | References
and scan the list for a reference to anything that looks like it could be
the other application. You might be lucky.

Otherwise you may have to resort to SendKeys or, possibly, sending Windows
messages (a kind of lower level sendkeys) to the other app.

--
Rob

http://www.asta51.dsl.pipex.com/webcam/

This message is copyright Robert Bruce and intended
for distribution only via NNTP.
Dissemination via third party Web forums with the
exception of Google Groups and Microsoft Communities
is strictly prohibited and may result in legal action.


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
Applications in Excel Snailspace New Users to Excel 5 October 22nd 08 03:39 PM
Office applications will not run fred07 Setting up and Configuration of Excel 2 February 8th 07 07:44 PM
Userform to be always on top of all Applications? George J Excel Programming 2 September 23rd 04 02:09 PM
Other applications Patrick Molloy[_4_] Excel Programming 2 July 23rd 03 12:08 AM
macros for other applications Douvid Excel Programming 3 July 14th 03 02:44 PM


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