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

I'm very new to macros so I'll apologize for asking what is probably a
simple question. I want my macro to open a different program. I'm
fairly sure this is possible, but can anyone tell me how to do it?

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2,337
Default Opening files in other programs

Have a look in vba help for SHELL

--
Don Guillett
SalesAid Software

"Ldf77" wrote in message
oups.com...
I'm very new to macros so I'll apologize for asking what is probably a
simple question. I want my macro to open a different program. I'm
fairly sure this is possible, but can anyone tell me how to do it?



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 22,906
Default Opening files in other programs

Ld

Use the "Shell" method.

Example..........

Sub Internet_Explorer()
Dim taskID As Variant
On Error Resume Next
taskID = Shell("start iexplore.exe")
If Err < 0 Then _
MsgBox "IEXPLORE.EXE is not installed on your machine."
End Sub


Gord Dibben Excel MVP

On 9 Apr 2005 05:01:31 -0700, "Ldf77" wrote:

I'm very new to macros so I'll apologize for asking what is probably a
simple question. I want my macro to open a different program. I'm
fairly sure this is possible, but can anyone tell me how to do it?


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
Opening/converting other spreadsheet programs' files Conan Kelly Excel Worksheet Functions 2 January 12th 07 05:54 PM
Opening Different Programs using Excel. ronaldo444 Excel Worksheet Functions 3 July 25th 06 06:18 PM
opening different programs with excel macro buttons shrek Excel Worksheet Functions 0 September 30th 05 12:41 PM
Opening multiple programs in VBA Mr. Smiley Excel Discussion (Misc queries) 5 September 15th 05 08:52 PM
OPENING TWO DIFFERENT EXCEL PROGRAMS EXCEL SPREADSHEETS Excel Discussion (Misc queries) 3 December 2nd 04 11:14 PM


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