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

Using Office 98 on XP

Having recently upgraded from win98 to xp I am having the following problem

The following line works perfectly in win98 but fails in XP

**************
Shell "start """ & Range("G1").Value & "\test.htm"""
*************

The error message is
run time 53
"File Not Found"

Cell G1 contains ... C:\Images\Preview

Note their is nothing a matter with the specified path nor the file in the
relevant folder!

Remember this works perfectly in win98



  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 903
Default Shell Problem

Hi Stuart,
This is what I am using to open the file. It opens in Internet Explorer
for HTML files which is best to use when working with Excel. I used
to have code similar to your and it is all commented out.
Dim RC As Long
RC = Shell("Explorer " & filename, 1)

filename is a string would be c:\temp\XL2test.htm
in http://www.mvps.org/dmcritchie/excel/code/xl2htmlx.txt
which is the companion to
http://www.mvps.org/dmcritchie/excel/xl2html.htm
---
HTH,
David McRitchie, Microsoft MVP - Excel [site changed Nov. 2001]
My Excel Pages: http://www.mvps.org/dmcritchie/excel/excel.htm
Search Page: http://www.mvps.org/dmcritchie/excel/search.htm

"Stuart" wrote in message ...
Using Office 98 on XP

Having recently upgraded from win98 to xp I am having the following problem

The following line works perfectly in win98 but fails in XP

**************
Shell "start """ & Range("G1").Value & "\test.htm"""
*************

The error message is
run time 53
"File Not Found"

Cell G1 contains ... C:\Images\Preview

Note their is nothing a matter with the specified path nor the file in the
relevant folder!

Remember this works perfectly in win98





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
Shell Stuart[_20_] Excel Programming 1 February 17th 05 01:50 AM
shell commands K Dales[_2_] Excel Programming 0 January 19th 05 09:21 PM
VBE COM Add-in Shell R Avery Excel Programming 1 August 12th 04 02:55 PM
Problem using Excel's "Shell" command Jim Simpson Excel Programming 0 May 20th 04 06:28 PM
Shell Joseph[_12_] Excel Programming 1 February 1st 04 04:33 AM


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