Private Sub Txt009_Change()
Txt9.Value = Format(Txt009.Value, "#,##0")
End Sub
Txt9.Value = Format(Txt009.Value, "#,##0")
End Sub
Atau
Private Sub Txt009_Change()
Txt009.Value = Format(Txt009.Value, "Rp, #,##0")
End Sub
Txt009.Value = Format(Txt009.Value, "Rp, #,##0")
End Sub
Penjumlahan pada kedua textbox
Private Sub Txt9_Change()
Txt009.Value = Cdbl(Txt9.Value) - Cdbl(Txt09.Value)
End Sub
Txt009.Value = Cdbl(Txt9.Value) - Cdbl(Txt09.Value)
End Sub
Atau
Private Sub Txt09_Change()
Txt009.Value = Cdbl(Txt9.Value) - Cdbl(Txt09.Value)
End Sub
Txt009.Value = Cdbl(Txt9.Value) - Cdbl(Txt09.Value)
End Sub
Untuk menghindari error anda bisa menambahkan On errro resume next
Private Sub Txt09_Change()
On errro resume next
Txt009.Value = Cdbl(Txt9.Value) - Cdbl(Txt09.Value)
End Sub
On errro resume next
Txt009.Value = Cdbl(Txt9.Value) - Cdbl(Txt09.Value)
End Sub
Format mata uang dan pengurangan sederhana dalam excel macro - Cara meletakan kode diarea object silahkan lihat tautan link dibawah ini
0 komentar:
Posting Komentar