LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
jjk jjk is offline
external usenet poster
 
Posts: 42
Default Invalid "format string" argument in Format fuction

Hi,

I was wondering if there is any way to check for invalid "format
string" argument in the Format function.
As far as I can see it accepts all string combinations. Is there any
exception handling or boounds check that I can place here.
I ask this because I have to wrap the format functionality and want to
watch out for any side effects.

Thanks,
Jayant

Ref from Help:

Format Function
Returns a Variant (String) containing an expression formatted according
to instructions contained in a format expression.

Syntax:
Format(expression[, format[, firstdayofweek[, firstweekofyear]]])

expression - Required. Any valid expression.
format - Optional. A valid named or user-defined format expression.
firstdayofweek - Optional. A constant that specifies the first day of
the week.
firstweekofyear - Optional. A constant that specifies the first week of
the year.

 
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
how to use "if" logical argument to format/copy some pic. in cell Ali Excel Worksheet Functions 0 April 16th 07 01:46 PM
Scroll Bar missing "Control" tab in "Format Properties" dialog box Peter Rooney Excel Discussion (Misc queries) 5 August 24th 06 05:36 PM
Format a column wihtout using "Format-Cells-Number-category-etc" serve Excel Worksheet Functions 4 February 24th 06 12:54 AM
Changing format of column from "general" to "currency" Old Car Excel Programming 1 April 29th 05 09:49 AM
Convert "Month" to "MonthName" format from db to PivotTable Billabong Excel Programming 1 August 25th 04 09:14 AM


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