Test if entire row is selected

  • Thread starter Thread starter Jan Kronsell
  • Start date Start date
J

Jan Kronsell

Hi NG

Is there any way to test in VBA if an entire row has been selected? I tried
with something like

If Selection.EntireRow = True

but that didnt do the job :-)

Jan
 
if selection.address = selection.entirerow.address
or
if selection.address = activecell.entirerow.address
(if you wanted to check if it was a single row)
 
Thak you. That did it.

Jan

Dave said:
if selection.address = selection.entirerow.address
or
if selection.address = activecell.entirerow.address
(if you wanted to check if it was a single row)
 

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

Back
Top