This is not a usedrange problem.
For example, in Excel, the user selects a range (possibly empty) with the mouse, say B4: C12
And let's say after that, without deselecting the range, the user clicks the macro, and the macro should indicate B4: C12 .
Can someone show an example?
The macro should consist of the following lines:
Sub showrng() MsgBox SelectedRange.Address(ReferenceStyle:=xlA1) End Sub
vba excel-vba excel excel-2007 excel-2003
sdfg
source share