Range.

H

Heera

Hi,

If a user select's a range say A1:A10 then the macro should run.

But if a user select's multipul range say A1:A5 & A8:A10 then it
should give a msgbox.

My intension that the user should only select the range which is in
sequenc......

I tried to work with ActiveWindow.RangeSelection.Address but could not
find a way to find out a way.

Regards
Heera
 
J

Joel

Try this

Set MyRange = Selection
If MyRange.Areas.Count > 1 Then
MsgBox ("Move thean one area selected")
End If
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top