LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 4,391
Default opening a file problem


<Help file
..... If MultiSelect is True, the return value is an array of the selected
file names (even if only one filename is selected). Returns False if the
user cancels the dialog box.
</Help file

So you have to deal with an array of values not a single string. Also check
for False.

NickHK

"diacci1st" wrote in message
...
Hi I need to get the below to work but I can not understand why it does

not
work
Could someone help?

Dim FName As Variant
FName = Application.GetOpenFilename("TXT files (*.txt),*.txt,All Files
(*.*),*.*", , , , True)
Open FName For Input As #1


Thank you



 
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
problem opening file Markb Excel Discussion (Misc queries) 7 January 3rd 10 08:03 PM
Problem opening a file Dave Excel Discussion (Misc queries) 3 September 28th 07 06:37 PM
Problem opening a file AmyTaylor[_22_] Excel Programming 4 August 16th 05 12:36 PM
opening file problem please help Steve Goodrich Excel Discussion (Misc queries) 2 March 1st 05 10:40 PM
My Add-in causes problem with opening a file twice masayoshi hayashi Excel Programming 1 December 30th 03 06:55 AM


All times are GMT +1. The time now is 01:50 PM.

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"