rsanabria80
New Member
- Joined
- Jan 10, 2020
- Messages
- 4
- Office Version
- 2011
- Platform
- MacOS
1) I have an excel sheet with values (Numbers) that represent dollar amounts.
2) I have a Userform that has labels that update the values according to the amounts on the Excel Sheet...
Everything was running smoothly until I opened the excel worksheet with a PC (I work on MAC Excel 2011) in order to be able to edit userforms.
The only way it show the number correctly if is the value on the cell is a rounded number (no decimals)
Now with the same code I get a very strange number formatting using this code:
And on the Images you can see the number at the excel Sheet and the outcome on the Userform...
PLEASE HELPPPPP! jajajaj
Thank you!
[/CODE]
2) I have a Userform that has labels that update the values according to the amounts on the Excel Sheet...
Everything was running smoothly until I opened the excel worksheet with a PC (I work on MAC Excel 2011) in order to be able to edit userforms.
The only way it show the number correctly if is the value on the cell is a rounded number (no decimals)
Now with the same code I get a very strange number formatting using this code:
VBA Code:
Sub Updatelabels()
Dim CF As Worksheet
Dim DB As Worksheet
Dim Export As Worksheet
Dim CAL As Worksheet
Set CF = ThisWorkbook.Sheets("Cashflow")
Set DB = ThisWorkbook.Sheets("DB")
Set Export = ThisWorkbook.Sheets("Export")
Set CAL = ThisWorkbook.Sheets("Calculation")
'Labels for Current Situation
Me.lblActBal2.Caption = CF.Cells(3, "f")
Me.lblActBal2 = Format(Me.lblActBal2, "#,##0.00")
End Sub
And on the Images you can see the number at the excel Sheet and the outcome on the Userform...
PLEASE HELPPPPP! jajajaj
Thank you!