macro to multiply all constant numbers of column D of all worksheets in the workbook & rounded off result upto 2 decimal no

Yogesh Joshi

New Member
Joined
May 27, 2014
Messages
8
Office Version
  1. 2013
Platform
  1. Windows
Hi all of you

I'm very new to the macro world..!!

I need a macro to multiply all constant numbers of column D of all worksheets in the workbook & rounded off result upto 2 decimal no.

Any help will be much appreciated.

Thanks in advance
 

Excel Facts

Best way to learn Power Query?
Read M is for (Data) Monkey book by Ken Puls and Miguel Escobar. It is the complete guide to Power Query.
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..


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


Many Many Thanks in advance...!!
 
Upvote 0
Welcome to the MrExcel Message Board!

Cross-posting (posting the same question in more than one forum) is not against our rules, but the method of doing so is covered by #13 of the Forum Rules.

Be sure to follow & read the link at the end of the rule too!

Cross posted at: macro to multiply all constant numbers of column D by 1.03 of all worksheets in the workbook & rounded off result upto 2 decimal no.
If you have posted the question at more places, please provide links to those as well.

If you do cross-post in the future and also provide links, then there shouldn’t be a problem.
 
Upvote 0
Welcome to the MrExcel Message Board!

Cross-posting (posting the same question in more than one forum) is not against our rules, but the method of doing so is covered by #13 of the Forum Rules.

Be sure to follow & read the link at the end of the rule too!

Cross posted at: macro to multiply all constant numbers of column D by 1.03 of all worksheets in the workbook & rounded off result upto 2 decimal no.
If you have posted the question at more places, please provide links to those as well.

If you do cross-post in the future and also provide links, then there shouldn’t be a problem.
thanks to clarify that I will surely do that from my next post onward.
 
Upvote 0
I have posted the same question in other forum too & I got the solution which can be reached from following link....

http://https://chandoo.org/forum/th...k-rounded-off-result-upto-2-decimal-no.47901/
Check the following link for the solution ...

 
Upvote 0
Solution

Forum statistics

Threads
1,214,911
Messages
6,122,196
Members
449,072
Latest member
DW Draft

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top