ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   macro (https://www.excelbanter.com/excel-discussion-misc-queries/92715-macro.html)

helphelp

macro
 
I have a worksheet with about 250 rows of data. There are about 200
workssheets. I want one particular column in a worksheet to be divided by
1000. When I try to record a macro, i get a message that says "unable to
record". Please let me know if there is a solution to this. The cell contains
a very long formula.

Thanks

mrice

macro
 

You could use a directly written macro like the one below which will
take every cell in the selected area and divide by 1000

Sub Divide
For Each Cell in Selection
Cell = Cell/1000
Next Cell
End Sub


--
mrice

Research Scientist with many years of spreadsheet development experience
------------------------------------------------------------------------
mrice's Profile: http://www.excelforum.com/member.php...o&userid=10931
View this thread: http://www.excelforum.com/showthread...hreadid=549635



All times are GMT +1. The time now is 12:21 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com