I am new to excel macros. I want to copy the selected range to clip board.
Below is the link where half solution is present, it gives output in popup msg box.
Excel VBA get range of user selected range by mouse
its like
Sub macro1()
MsgBox Selection.Address(ReferenceStyle:=xlA1, _
RowAbsolute:=False, ColumnAbsolute:=False)
End Sub
But if i want to escape the popup and directly copies the result to clipboad????
example: if i have selected the cells from B15 to E40 and F23 cell, it gives the msg as "B15:E40,F23", and i want to copy this msg, not the cell content of these selected cells.