Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 78
Default Launch non-office applications through VBA

Is it possible to launch non-office applications such as IE or Windows
explorer through VBA, which has a similar effect as, running these
applications from the RUN prompt giving arguments such as URL or windows path
respectively.
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 23
Default Launch non-office applications through VBA

The VBA command you want is the 'Shell' Function

Shell "Notepad.exe"

However, you should look for a any COM object which might expose the
application as an object variable with properties and methods you can call
directly from your code.

N

"Madhan" wrote:

Is it possible to launch non-office applications such as IE or Windows
explorer through VBA, which has a similar effect as, running these
applications from the RUN prompt giving arguments such as URL or windows path
respectively.

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 324
Default Launch non-office applications through VBA

Workbooks.Open Filename:="http://www.microsoft.com/"
Workbooks.Open Filename:="C:\My Documents\Excel\MyFile.xls"

--
Best wishes,

Jim


"Madhan" wrote:

Is it possible to launch non-office applications such as IE or Windows
explorer through VBA, which has a similar effect as, running these
applications from the RUN prompt giving arguments such as URL or windows path
respectively.

  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 78
Default Launch non-office applications through VBA

Thanks.

"Jim Jackson" wrote:

Workbooks.Open Filename:="http://www.microsoft.com/"
Workbooks.Open Filename:="C:\My Documents\Excel\MyFile.xls"

--
Best wishes,

Jim


"Madhan" wrote:

Is it possible to launch non-office applications such as IE or Windows
explorer through VBA, which has a similar effect as, running these
applications from the RUN prompt giving arguments such as URL or windows path
respectively.

  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 78
Default Launch non-office applications through VBA

Thanks. This is exactly what I wanted. COM objects may not be available for
applications that are created by us, whereas shell would allow us to lauch
any application. Thanks once again.

"Nile_Hef" wrote:

The VBA command you want is the 'Shell' Function

Shell "Notepad.exe"

However, you should look for a any COM object which might expose the
application as an object variable with properties and methods you can call
directly from your code.

N

"Madhan" wrote:

Is it possible to launch non-office applications such as IE or Windows
explorer through VBA, which has a similar effect as, running these
applications from the RUN prompt giving arguments such as URL or windows path
respectively.

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
Office applications will not run fred07 Setting up and Configuration of Excel 2 February 8th 07 07:44 PM
Is Office Clipboard shared between users or just applications? Paladin Excel Discussion (Misc queries) 0 January 12th 06 07:31 PM
Excel OLE objects crashing in other Office applications Hari Prasadh Excel Discussion (Misc queries) 4 August 31st 05 11:49 AM
Cannot create new? In all office 2003 applications Vakul Excel Discussion (Misc queries) 2 April 25th 05 06:10 AM


All times are GMT +1. The time now is 01:17 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"