Home |
Search |
Today's Posts |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
On Jan 19, 9:07 am, pswanie wrote:
would it be posible to default the amount enterd in a text box with the prefix "R" and "." to seperate sents? we use amounts like R1125.80 and show amounts in lable as that to? i got this: Label24.Caption = Range("l65536").End(xlUp).Value No need for code. You can define a custom format for the cells with those values. Select the cells then Menu - Format - Cells - Custom. Then select the "0.00" format and insert the "R" to the left of the number format. The R will then be prefixed to values that people add into the worksheet. If you want to use code, macro capture of the above sequence gives you: Range("C7:C10").Select Selection.NumberFormat = "R0.00" You can include the NumberFormat line in your subs to give you what you want. SteveM |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
how do i add same prefix any text or number to the large datas? | Excel Worksheet Functions | |||
How do I set an 'M' prefix to existing text in a column? | New Users to Excel | |||
How do I separate the alpha prefix from a text (abc123 or a1234)? | Excel Worksheet Functions | |||
How to create a prefix containing text and zero? | Excel Worksheet Functions | |||
How can I add a two letter prefix to text in cells? | Excel Discussion (Misc queries) |