I have the following code that tries to get a dynamic range and print the values of each cells of the range.
Sub Macro3()
'
Range("D10").Select
x = Range(Selection, Selection.End(xlDown)).Select
For Each cell In x
MsgBox (cell)
Next x
End Sub
If I run it however it get a compile error... Any thoughts on what goes wrong here?