View Single Post
  #1   Report Post  
Posted to microsoft.public.excel.misc
topola
 
Posts: n/a
Default selection.copy - how emulate Paste command?

Here is the macro that concatenates the cells contents in one string.
I've manage to display the result in MsgBox. Now I would like to be
able to use it as a "PASTE" command. Do you have any ideas?

Sub Macro1()
Result = ""
For Each cell In Selection
Result = Result & " " & cell.Text
Next
MsgBox Result
End Sub

Tnkx in advance, tp