View Single Post
  #1   Report Post  
Posted to microsoft.public.excel.programming
Donald[_4_] Donald[_4_] is offline
external usenet poster
 
Posts: 11
Default Fixed Decimal in Text Box

The following code displays a cell value in my text box(txtGain), how do I
limit the text display to 2 decimals when the value in "J18" contains more
than two decimals?

txtGain.Value = "$" &
Workbooks("MyWorkSheet.xls").Sheets("MyHistory").R ange("J18").Value

--
DS