Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
I'm trying to paste the value of one calculated cell onto another that
just has a vlaue unitl they are essentially the same. The macro below seems to only iterate once, whereas it usually take three or fout iterations to get them close. So, clearly something is wrong. Please help. Thanks Dean Sub Iterate_On_Cost() Dim Difference As Variant Dim CalculatedCost As Variant Dim HardCodedCostValue As Variant Do Range("CalculatedCost").Select Selection.Copy Range("HardCodedCostValue").Select Selection.PasteSpecial Paste:=xlPasteValues, Operation:=xlNone, SkipBlanks _ :=False, Transpose:=False Application.CutCopyMode = False Difference = Abs(CalculatedCost - HardCodedCostValue) Loop Until Difference < 0.001 End Sub |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
A simpler way | Excel Programming | |||
Simpler Macro | Excel Programming | |||
is there not a simpler way | Excel Programming | |||
ot - Wanted: Excel Programmer Writers in RedmondWanted: Excel Programmer Writers in Redmond | Excel Programming | |||
How to run a macro many times simpler? | Excel Programming |