Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 23
Default Is string allowable as a file name

Hello

I am writing a version control macro and need it to identify whether
the file name entered by the user is valid as a file name. Can
anybody either:

a) provide some code that identifies whether a given text string is
allowable as a file name?

b) provide a list of all characters that are not allowable in file
names so that I can write such a piece of code myself.

Thanks

John
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 6,582
Default Is string allowable as a file name

Google is your friend:

http://msdn2.microsoft.com/en-us/library/aa365247.aspx

In addition to the rules here, you'll find that for use in Excel, it is also
helpful to disallow [square brackets] and 'single quotes' from file names.

- Jon
-------
Jon Peltier, Microsoft Excel MVP
Tutorials and Custom Solutions
Peltier Technical Services, Inc. - http://PeltierTech.com
_______


"JT" wrote in message
...
Hello

I am writing a version control macro and need it to identify whether
the file name entered by the user is valid as a file name. Can
anybody either:

a) provide some code that identifies whether a given text string is
allowable as a file name?

b) provide a list of all characters that are not allowable in file
names so that I can write such a piece of code myself.

Thanks

John



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 703
Default Is string allowable as a file name

And tildes "~" as I've recently discovered.

"Jon Peltier" wrote:

Google is your friend:

http://msdn2.microsoft.com/en-us/library/aa365247.aspx

In addition to the rules here, you'll find that for use in Excel, it is also
helpful to disallow [square brackets] and 'single quotes' from file names.

- Jon
-------
Jon Peltier, Microsoft Excel MVP
Tutorials and Custom Solutions
Peltier Technical Services, Inc. - http://PeltierTech.com
_______


"JT" wrote in message
...
Hello

I am writing a version control macro and need it to identify whether
the file name entered by the user is valid as a file name. Can
anybody either:

a) provide some code that identifies whether a given text string is
allowable as a file name?

b) provide a list of all characters that are not allowable in file
names so that I can write such a piece of code myself.

Thanks

John




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
Adding more then the allowable 30! mndpy Excel Worksheet Functions 6 March 3rd 08 10:47 PM
VLOOKUP - Allowable Number Sequence JAD Excel Worksheet Functions 2 November 17th 07 08:05 PM
Max Name Ranges Allowable in Excel 2003 j.r.hu Excel Programming 1 September 21st 07 10:34 PM
allowable no of character ShamsulZ Excel Programming 4 October 7th 06 04:44 AM
what is the correct syntax for an allowable circular reference? excell idiot Excel Discussion (Misc queries) 1 March 10th 05 05:17 PM


All times are GMT +1. The time now is 03:25 PM.

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"