View Single Post
  #1   Report Post  
Posted to microsoft.public.excel.programming
Brian S[_2_] Brian S[_2_] is offline
external usenet poster
 
Posts: 9
Default copy range to a variable.

Is it possible to copy a range of cells and set them equal to a variable?
Something like this:
Cells(1, 1).Select
Range(Selection, Selection.End(xlToRight)).Select
Range(Selection, Selection.End(xlDown)).Select
Selection.Copy
x = selection


Thanks