Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 59
Default Use of Format function in Excel marco

Please advise why when this macro run on Excel 2003, it give a Run-time error
"13" Type mismatch?

Balance = Format(GrandTotal.Value - Pyt01.Value - Pyt02.Value - Pyt03.Value,
"$#,##0.00")

I do not encounter such problem running it on Excel 97 and Excel 2000.

Thank you.
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default Use of Format function in Excel marco

suspect it has more to do with what is contained in your variables than
anything to do with the version of Excel.

--
Regards,
Tom Ogilvy

"Jimmy" wrote in message
...
Please advise why when this macro run on Excel 2003, it give a Run-time

error
"13" Type mismatch?

Balance = Format(GrandTotal.Value - Pyt01.Value - Pyt02.Value -

Pyt03.Value,
"$#,##0.00")

I do not encounter such problem running it on Excel 97 and Excel 2000.

Thank you.



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
Excel Marco for IP Address [email protected] Excel Worksheet Functions 1 August 17th 06 07:05 PM
marco to format top 80% NN Excel Discussion (Misc queries) 3 January 17th 06 05:51 PM
how to use marco in excel rnparikh New Users to Excel 9 August 2nd 05 12:08 AM
excel Marco question ... need help please ALP Excel Discussion (Misc queries) 3 March 1st 05 03:11 PM
Excel - Marco error .......HELP ALP Excel Programming 4 March 1st 05 12:35 AM


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