#1   Report Post  
Sunantoro
 
Posts: n/a
Default VBA syntax

If I define Cell B5's Value to be $2000
what is the VB syntax that Cell B5 will now shows "$2000"?
Sorry, this is very basic
Thanks,
SUNAN
  #2   Report Post  
Rowan
 
Posts: n/a
Default

with cells(5,2)
.value = 2000
.numberformat = "$#,##0"
end with

Hope this helps
Rowan


Sunantoro wrote:
If I define Cell B5's Value to be $2000
what is the VB syntax that Cell B5 will now shows "$2000"?
Sorry, this is very basic
Thanks,
SUNAN

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
Insert more than 1 Row Syntax blazzae Excel Worksheet Functions 5 July 10th 05 01:46 AM
Rate syntax KWIGZ Excel Discussion (Misc queries) 2 June 16th 05 08:59 PM
WHAT SYNTAX IS USED TO ROUND A 4-DIGIT NUMBER TO THE NEAREST THOUS KENITOSAN Excel Discussion (Misc queries) 4 February 19th 05 11:06 PM
Vlookup Syntax Error YV New Users to Excel 9 December 23rd 04 06:28 PM
Previous Post - Correct Syntax Query Clarence Crow Excel Worksheet Functions 0 December 7th 04 06:35 AM


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