Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming,comp.apps.spreadsheets,microsoft.public.excel.misc
external usenet poster
 
Posts: 8
Default Question: OPEN return status

Excel-97 (SR-2)

My Excel version 4 manual describes the obsolete form of Fopen, with
this syntax I hoped to perform

[G15:FileNonExistent] = <within a macro isNA( Fopen(
"C:\datafile.pdf", 2))


However the syntax in Excel-97 now means I have to use

[G15:FileNonExistent] = <within a macro open "C:\datafile.pdf" for
input as #123

Trouble is this does not return a status, but generates an error if
the file does not exist. How can the macro trap this error and convert
it to a return status?


When I actually tried this with a non-existent file, the cell invoking
the macro just displays #Value!, only if I step into the macro do I
get an error reported.

TIA (thanks in advance),
Fred.
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
reuest formula for auto update status & status date PERANISH Excel Worksheet Functions 5 June 2nd 08 04:26 PM
Not Detecting Open Workbook Status - Odd?? Jenny B. Excel Discussion (Misc queries) 4 January 16th 08 01:47 AM
List "OPEN" orders based on a status column beechum1 Excel Worksheet Functions 2 February 13th 06 01:12 PM
Calc status of open excel workbook should not overwrite another Michael Hill Setting up and Configuration of Excel 1 October 28th 05 06:48 PM
I want to return a value based on the status of a check box. If . JROD Excel Worksheet Functions 1 April 4th 05 08:18 PM


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