Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 3,355
Default Naming convention for workbook names

Can someone direct me to the naming convention for workbook names. What is
allowed and what is not? I want to suggest some workbook names for a SAVEAS
and want to avoid traps because of the convention.

Thanks,
Barb Reinhardt
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 11,058
Default Naming convention for workbook names

Avoid /\<|:?*"


--
Gary''s Student
gsnu200710


"Barb Reinhardt" wrote:

Can someone direct me to the naming convention for workbook names. What is
allowed and what is not? I want to suggest some workbook names for a SAVEAS
and want to avoid traps because of the convention.

Thanks,
Barb Reinhardt

  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 7,247
Default Naming convention for workbook names

If you avoid punctuation character other than a space or comma, you should
be OK. There are no special rules that apply to workbooks. A workbook name
must be a valid Windows file name, no more, no less. You could test with
code for a valid name before using it.

Function IsValidFileName(FileName As String) As Boolean
Dim S As String
On Error Resume Next
S = Dir(FileName)
IsValidFileName = (Err.Number = 0)
End Function

Sub AAA()
Dim FName As String
FName = "Bo|ok1.xls"
If IsValidFileName(FName) = True Then
Debug.Print "FileName Is Valid"
Else
Debug.Print "FileName is not valid."
End If
End Sub


--
Cordially,
Chip Pearson
Microsoft MVP - Excel
Pearson Software Consulting, LLC
www.cpearson.com
(email on the web site)
"Barb Reinhardt" wrote in message
...
Can someone direct me to the naming convention for workbook names. What
is
allowed and what is not? I want to suggest some workbook names for a
SAVEAS
and want to avoid traps because of the convention.

Thanks,
Barb Reinhardt


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
Naming a new Excel workbook in a macro GLS Excel Worksheet Functions 2 November 25th 06 11:18 PM
Auto naming Tabs in a Workbook Johnny Excel Discussion (Misc queries) 5 August 29th 06 04:42 PM
Convert stored numbers into a set naming convention Sean Excel Worksheet Functions 4 August 26th 06 08:05 PM
how do I find names in a workbook full of names aj Excel Discussion (Misc queries) 1 January 19th 06 09:01 PM
Workbook "Sheet" Naming comotoman Excel Discussion (Misc queries) 4 September 30th 05 09:49 PM


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