Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 12
Default Need to display ANY file type...

Hello...

I am trying to use some code by Chip Pearson to import text files. It
works great, except the particular files that I must browse for have NO
filename extension; therefore, they do not appear in the list when
browsing for documents.

The current code is as follows (and one would think that it would find
anything):

(filefilter:="Text Files(*.txt),*.txt,All Files (*.*),*.*")

Does anyone know how I can modify this to find files with NO extension?

Any help would be greatly appreciated.

Thanks,
Jessi

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 10,593
Default Need to display ANY file type...

filefilter:="All Files (*.*), *.*"

should do it

--
HTH

Bob Phillips

(replace somewhere in email address with gmail if mailing direct)

wrote in message
ups.com...
Hello...

I am trying to use some code by Chip Pearson to import text files. It
works great, except the particular files that I must browse for have NO
filename extension; therefore, they do not appear in the list when
browsing for documents.

The current code is as follows (and one would think that it would find
anything):

(filefilter:="Text Files(*.txt),*.txt,All Files (*.*),*.*")

Does anyone know how I can modify this to find files with NO extension?

Any help would be greatly appreciated.

Thanks,
Jessi



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 7,247
Default Need to display ANY file type...

Try

Dim FName As Variant
FName = Application.GetOpenFilename(filefilter:="All files
(*.*),*.*")
If FName = False Then
MsgBox "you clicked cancel"
Else
MsgBox "You selected: " & FName
End If


--
Cordially,
Chip Pearson
Microsoft MVP - Excel
Pearson Software Consulting, LLC
www.cpearson.com



wrote in message
ups.com...
Hello...

I am trying to use some code by Chip Pearson to import text
files. It
works great, except the particular files that I must browse for
have NO
filename extension; therefore, they do not appear in the list
when
browsing for documents.

The current code is as follows (and one would think that it
would find
anything):

(filefilter:="Text Files(*.txt),*.txt,All Files (*.*),*.*")

Does anyone know how I can modify this to find files with NO
extension?

Any help would be greatly appreciated.

Thanks,
Jessi



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
Display file name without the file type extension NAHolmes Excel Worksheet Functions 5 November 23rd 09 05:54 PM
need Excell to display something other than what I type Kristopher Woods Excel Worksheet Functions 1 October 10th 07 03:23 AM
macro to display items of a same type Richard A[_2_] Excel Programming 1 March 7th 06 11:51 AM
Comment Shower type display Baronvonfoxbat Excel Discussion (Misc queries) 0 April 5th 05 08:03 PM
Type in textbox display immediately in cell - need help on this HappyDevil24[_5_] Excel Programming 3 June 25th 04 02:03 AM


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