D
Dee Sperling
I found this great module on here:
Sub ConcatSelection()
Dim rng As Range
Dim strConcat As String
For Each rng In Selection
strConcat = strConcat & " " & rng.Text
Next
Range("F2") = strConcat
End Sub
It works nicely to concatenate the user-selected cells, but I'd like the
user to be able to chose the destination cell. Is that possible?
I tried adding this line above the Range line:
x = Application.InputBox(prompt:="enter the value", Type:=1)
then changed Range("F2") = strConcat to Range(x) = strConcat
But I got an error.
Is it possible to do this?
Thank you,
Dee
Sub ConcatSelection()
Dim rng As Range
Dim strConcat As String
For Each rng In Selection
strConcat = strConcat & " " & rng.Text
Next
Range("F2") = strConcat
End Sub
It works nicely to concatenate the user-selected cells, but I'd like the
user to be able to chose the destination cell. Is that possible?
I tried adding this line above the Range line:
x = Application.InputBox(prompt:="enter the value", Type:=1)
then changed Range("F2") = strConcat to Range(x) = strConcat
But I got an error.
Is it possible to do this?
Thank you,
Dee