N
Neeraja
Hi,
Could you please help me with selecting different set of
ranges at one point of time with an input box in MS Excel
programming? It's like the user will select a range then
using the Ctrl key select another range at the same time.
Sub InputRange()
Dim varRange As Variant
On Error Resume Next
Set varRange = _
Application.InputBox("Select a range of cells:",
Type:=8)
If IsObject(varRange) = False Then Exit Sub
MsgBox varRange.Rows.Count
End Sub
The above code selects a single range.
Could someone Let me know asap.
Thanks
Neeraja.
Could you please help me with selecting different set of
ranges at one point of time with an input box in MS Excel
programming? It's like the user will select a range then
using the Ctrl key select another range at the same time.
Sub InputRange()
Dim varRange As Variant
On Error Resume Next
Set varRange = _
Application.InputBox("Select a range of cells:",
Type:=8)
If IsObject(varRange) = False Then Exit Sub
MsgBox varRange.Rows.Count
End Sub
The above code selects a single range.
Could someone Let me know asap.
Thanks
Neeraja.