Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
I found this great module on he
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 |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Define variable range input for SUM() function | Excel Worksheet Functions | |||
Variable named range in worksheet function | Excel Worksheet Functions | |||
Variable range in MAX-function | Excel Worksheet Functions | |||
Using a range variable inside a excel function | Excel Discussion (Misc queries) | |||
A function to get a variable row reference for range in XNPV funct | Excel Worksheet Functions |