Please explain why following code doesn't work....
Current Version: (Working)
Sub Panel_Flip()
Dim store(3) As Double
For i = 3 To 0 Step -1
void = MsgBox(i, vbOKOnly, "i:=")
store(i) = Val(ActiveCell.Offset(0, 1 + i).Value)
void = MsgBox(store(i), vbOKOnly, "Store(" + Str$(i) + ")")
Next
For i = 0 To 3
void = MsgBox(store(i), vbOKOnly, "Store(" + Str$(i) + ")")
ActiveCell.Offset(0, 4 - i).Range("A1").Value = store(i)
Next
End Sub
Now to extend it to a selection of any length (more complicated :-)).
I'm assuming Current Region plays a role.
Ideally it should be possible to have a routine tat will flip
even if your not at the start of the sequence but that would
need some way of determing the start and end columsn of a
selected region..
FMNT80
|