ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Basic Compile Problem (https://www.excelbanter.com/excel-programming/364299-basic-compile-problem.html)

mpeplow[_7_]

Basic Compile Problem
 

Can anyone tell me why this code does not work in the immediate window

msgbox (Format (35988.3708, "currency"))

I get wrong number of arguments of invalid property assignment but that
does not make sense. I'm pretty sure I have the right number of
arguments.

Shouldn't the msgbox display $35,988.37 ?


--
mpeplow
------------------------------------------------------------------------
mpeplow's Profile: http://www.excelforum.com/member.php...o&userid=34812
View this thread: http://www.excelforum.com/showthread...hreadid=552007


Chip Pearson

Basic Compile Problem
 
Your code works fine for me in both a procedure and in the
Immediate window.


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


"mpeplow"
wrote in message
...

Can anyone tell me why this code does not work in the immediate
window

msgbox (Format (35988.3708, "currency"))

I get wrong number of arguments of invalid property assignment
but that
does not make sense. I'm pretty sure I have the right number
of
arguments.

Shouldn't the msgbox display $35,988.37 ?


--
mpeplow
------------------------------------------------------------------------
mpeplow's Profile:
http://www.excelforum.com/member.php...o&userid=34812
View this thread:
http://www.excelforum.com/showthread...hreadid=552007





All times are GMT +1. The time now is 02:53 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com