Wrox Programmer Forums
|
Beginning VB 6 For coders who are new to Visual Basic, working in VB version 6 (not .NET).
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Beginning VB 6 section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old June 14th, 2003, 02:45 PM
Registered User
 
Join Date: Jun 2003
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Default Launching Apps from VB??

I want to launch an application(i.e. C:\Temp\Test1.xls) from my VB application. I found how to use the Shell() function to launch executables, but how would I launch an .xls file, or anything else?

TIA,
Pete S - Tucson, AZ

Pete S - Tucson, AZ
 
Old June 15th, 2003, 07:59 PM
Authorized User
 
Join Date: Jun 2003
Posts: 11
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Try the ShellExecute API function.

Details here http://vbaccelerator.nuwebhost.com/c...ll/shellex.htm or http://support.microsoft.com/default...en-us%3B170918 here.

If this answer looks familiar it's because the answer above yours in the "Opening a .doc file for view" thread. ;)
 
Old June 20th, 2003, 01:23 AM
Registered User
 
Join Date: Jun 2003
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Thank you very much! It worked perfectly :D


Pete S - Tucson, AZ





Similar Threads
Thread Thread Starter Forum Replies Last Post
problem with two pages launching Diggers33 Flash (all versions) 2 January 25th, 2007 07:39 AM
Upgrade VB apps to VB.NET Steve McGuire Pro VB.NET 2002/2003 2 September 13th, 2006 04:21 PM
how to control the layout with VB web apps hexOffender VB How-To 1 July 19th, 2006 05:27 PM
Data capture apps for PDAs with VB.NET badgolfer VS.NET 2002/2003 2 September 3rd, 2005 08:55 PM
Files needed to run a VB.Net Windows Apps daniel VB.NET 2002/2003 Basics 2 October 15th, 2004 09:29 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.