Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default 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

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 7,247
Default 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



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
visual basic compile error in excel 2003 poopscooper101 Excel Discussion (Misc queries) 2 March 7th 08 09:39 PM
Micrsoft Visual Basic Compile error: Expected: end of statement IJ Excel Discussion (Misc queries) 5 October 23rd 06 12:08 AM
Visual Basic Compile Error k3639 Excel Discussion (Misc queries) 5 September 13th 06 10:02 PM
microsoft visual basic compile error can't find library mamabuff Setting up and Configuration of Excel 1 December 29th 05 11:19 AM
Visual Basic Compile error in XP matt Excel Programming 1 February 18th 04 07:01 PM


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