Set rCells = Selection
Here I used rCells as the range variable holding the cells in the selection.
--
Wigi
http://www.wimgielis.be = Excel/VBA, soccer and music
"(E-Mail Removed)" wrote:
> Hi
>
> Would be very grateful for a solution to this... I need to run a macro
> against a currently selected range of cells. The macro creates a new
> cell based on the concatenated contents of the selected cells (which
> will always be just a single set in a column) like so:
>
> Selected cells: New cell:
>
> .. ABC ABCDEFGHI
> .. DEF
> .. GHI
>
> However I can't find a way to do this as there is no 'SelectedCells'
> or 'SelectedRange' property for Worksheet object.
>
> Thanks in anticipation
>
> Vaughan
>
>