Dont Call me Betty
New Member
- Joined
- Sep 29, 2023
- Messages
- 19
- Office Version
- 365
- Platform
- Windows
Below code does it by using cell J1, then copies it.
How to do it without using any cell, straight to the clipboard?
How to do it without using any cell, straight to the clipboard?
VBA Code:
Sub ConcatSelection()
Dim rng As Range
Dim i As String
For Each rng In Selection
i = i & rng & " "
Next rng
'Range("J1").Value = Trim(i)
Range("J1").Value = (i)
Range("J1").Copy
End Sub