I have created a user form that receives its value from a NameRange in the workbook.
Private Sub UserForm_Initialize()
tb_TFR_PM_3PH_AMT.ControlSource = "TFR_PM_3PH_AMT"
tb_TFR_PM_3PH_AMT.Text = Format(tb_TFR_PM_3PH_AMT.Text, "#,##0.00")
MsgBox "Value = " & tb_TFR_PM_3PH_AMT.Text & " ."
End Sub
When the MsgBox displays the value is formatted correctly but when it displays on the UserForm it is 8156.5.
How can I display the number correctly on the UserForm?
Excel 2007 Windows XP
Private Sub UserForm_Initialize()
tb_TFR_PM_3PH_AMT.ControlSource = "TFR_PM_3PH_AMT"
tb_TFR_PM_3PH_AMT.Text = Format(tb_TFR_PM_3PH_AMT.Text, "#,##0.00")
MsgBox "Value = " & tb_TFR_PM_3PH_AMT.Text & " ."
End Sub
When the MsgBox displays the value is formatted correctly but when it displays on the UserForm it is 8156.5.
How can I display the number correctly on the UserForm?
Excel 2007 Windows XP