Now this is weird...
I have 2 sheets. The first sheet contains calculations with results in the range AL3:BO3. Each time it calculates, the results change as its formulae contain randon numbers. The second sheet is blank.
I have a small peice of code that recalculates the workbook a few times and puts the result of the calculation in the first sheet in successive rows in the second:
Sub MontyCarlo(Itterations As Integer)
Dim x As Integer
For x = 1 To Itterations
Application.Calculate
Output2.Range(Cells(x, 1), Cells(x, 30)).Value = MC.Range("AL3:BO3").Value
Next x
End Sub
Now here's the weird bit: The results in the first sheet are in currency format (GBP). When the code puts them in the second sheet they become text, prefixed as USD currency with a trailing space!
After trying lots of alternatives I found that if I changed the format of the results to 'General' the code worked fine :confused:
Although I've now got it working, can anyone explain why .Value = .Value gave such strange results? Could it be to do with the over engineered build of NT I am on (I cannot change the styles for example)?
Cheers,
Chris.