Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Return Value of GetOpenFilename, Excel 2007

hi,

I used GetOpenFilename and checked its return value for
= False

Excel 2003 worked, but
Excel 2007 not

There was a type problem.

If no File is chosen it works, because the return value is False.
But if a valid File is chosen, it throws a type error, because the False of
the check is not a String.

I now convert the return value by using CStr and check it against "False".

is that a known issue?


Besuchen Sie uns auf der Embedded World in Nürnberg, 1.-3.3.2011, Stand
121, Halle 10!

Mit freundlichem Gruß

Alexander Fleck

--
Alexander Fleck
Schleißheimer GmbH
61206 Nieder Wöllstadt
Tel.: 06034 9148 791
Fax: 06034 9148 91
Registergericht: Amtsgericht Friedberg
Handelsregisternummer: HRB 1581
Geschäftsführer:
Hans-Joachim Schleißheimer
Christine Schleißheimer
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
Excel 2007: Return rownumber when text data on 3 columns match exa Fonebone Excel Programming 1 January 22nd 10 02:02 PM
excel 2007 text box - carriage return nhmcclure Excel Discussion (Misc queries) 1 October 30th 09 02:11 PM
How to return special values from function? (Excel 2007 + VS 2008) Tomasz Jastrzebski Excel Programming 3 July 27th 09 12:26 PM
How get Excel 2007 to return highest column virtualjustin Excel Worksheet Functions 6 February 18th 08 11:57 AM
Excel 2007 VB function call return value syntax question pop tufty Excel Programming 1 January 19th 08 04:50 PM


All times are GMT +1. The time now is 06:18 AM.

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

About Us

"It's about Microsoft Excel"