yogeshjoshi2020
New Member
Hi all of you
I'm very new to the macro world..!!
I need a macro to multiply all constant numbers of column D by 1.03 of all worksheets in the workbook & rounded off result up to 2 decimal no.
I have tried below code which is helping me out with single sheet result but I have so many sheets in the workbook can you help me through to get the result of all sheet at one go..
>>> use code - tags <<<
Any help will be much appreciated.
Many Many thanks in advance ..!!
I'm very new to the macro world..!!
I need a macro to multiply all constant numbers of column D by 1.03 of all worksheets in the workbook & rounded off result up to 2 decimal no.
I have tried below code which is helping me out with single sheet result but I have so many sheets in the workbook can you help me through to get the result of all sheet at one go..
>>> use code - tags <<<
Code:
Sub Macro5()
On Error Resume Next
Set C = Range("d1:D500").Cells.SpecialCells(xlCellTypeConstants)
For Each cc In C
cc.Value = Format(cc.Value * 1.03, "#.00")
Next
End Sub
Any help will be much appreciated.
Many Many thanks in advance ..!!
Last edited by a moderator: