Penny Bangalore
Board Regular
- Joined
- Apr 17, 2015
- Messages
- 79
hello,
Need help please
i have a macro which will change the number format to currency format ( $ ) .. i want this to be happened whenever a new worksheets is added to workbook..
can anyone help me please
Sub Formatcurrency()
Dim iSht As Integer
Dim rng As Range
For iSht = 1 To Sheets.Count
Set rng = Worksheets(iSht).UsedRange
With rng
.NumberFormat = "$#,##0.00"
End With
Next
End Sub
Need help please
i have a macro which will change the number format to currency format ( $ ) .. i want this to be happened whenever a new worksheets is added to workbook..
can anyone help me please
Sub Formatcurrency()
Dim iSht As Integer
Dim rng As Range
For iSht = 1 To Sheets.Count
Set rng = Worksheets(iSht).UsedRange
With rng
.NumberFormat = "$#,##0.00"
End With
Next
End Sub
Last edited: