Hi everyone,
I have a problem with a For Loop. What I have to do is this:
- Copy the first cell of ColumnA in F2 (in the yellow highlighted cell).
- Then all the data have to refresh.
- Then the cell F3 is update.
- The cell F3 is paste in B1 (the relative cell on the right of the columnA cell copy in the first step).
Here is the code:
For x = 1 To 5
Cells(x, 1).Select
Selection.Copy
Range("F2").Select
ActiveSheet.Paste
HERE THERE MUST BE A FUNCTION THAT PERMIT TO WAIT UNTIL THE REFRESH
Range("F3").Select
Selection.Copy
Cells(x, 2).Select
Selection.PasteSpecial Paste:=xlPasteValues, Operation:=xlNone, SkipBlanks _
:=False, Transpose:=True
Next
So the problem is that the loop copy and paste "#VALUE!" and doesn't wait the calculation.
I hope someone can help me.
Davide