Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11
Default Format of amount in label

Hi,

This doesn't work:

Label1.Caption = "? " & Round(Range("sheets1!G46").Value, 2, NumberFormat =
"0.00")

I want the label to show a text like ? 93,44 in stead of 93,44231. Can
someone help?

Thanks in advance, Gert-Jan



  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11
Default Format of amount in label

Found it:

Label1.Caption = Format(Range("sheets1!G46").Value, "? #,##0.00")

"Gert-Jan" schreef in bericht
...
Hi,

This doesn't work:

Label1.Caption = "? " & Round(Range("sheets1!G46").Value, 2, NumberFormat
= "0.00")

I want the label to show a text like ? 93,44 in stead of 93,44231. Can
someone help?

Thanks in advance, Gert-Jan






  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 8
Default Format of amount in label

ActiveSheet.Label1.Caption = "? " & Round(Range("sheet1!g46"),2)
seems to work for me.

"Gert-Jan" wrote in message
...
Hi,

This doesn't work:

Label1.Caption = "? " & Round(Range("sheets1!G46").Value, 2, NumberFormat
= "0.00")

I want the label to show a text like ? 93,44 in stead of 93,44231. Can
someone help?

Thanks in advance, Gert-Jan





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
Format a dollar amount to text Jordan Excel Worksheet Functions 4 April 30th 10 03:08 PM
Convert the amount into a word format Bl4ck5ilv3r Excel Discussion (Misc queries) 1 May 23rd 09 09:54 AM
Label Format to Column Format drakehouse Excel Discussion (Misc queries) 3 November 14th 06 12:30 AM
Format amount in string [email protected] Excel Discussion (Misc queries) 2 October 13th 06 02:46 PM
format row of cells to highlight least amount oceantravel Excel Worksheet Functions 1 October 3rd 05 09:55 PM


All times are GMT +1. The time now is 07:02 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"