Link to home
Start Free TrialLog in
Avatar of Andreas Hermle
Andreas HermleFlag for Germany

asked on

Detect blank 'rows' in a selected range using excel vba

Dear Experts:

I would like to run a macro that performs the following action:

For the selected range, check whether there are blank rows. If so ...
... display them in a msgbox such as "rows 4, 13, 1578 are blank rows" and ...
... select them.

For example: Range A2 to D40 is selected

If the macro detects that A4, B4, C4, D4 are blank cells, the macro would come up with the msgbox: Row 4 is blank

I hope this is feasible. Help is much appreciated.

Thank you very much in advance for your valuable and professional help.

Regards, Andreas
SOLUTION
Avatar of Professor J
Professor J

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
ASKER CERTIFIED SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of Andreas Hermle

ASKER

Dear Experts,

wow, thank you very much for your overwhelming support. This forum is just great.

All of the approaches work just fine, thank you very much but to be honest with you if I do a ranking, which ones are the best and the second best, then the ranking is: 1. fanpages (excellent) and 2. farzad

Will do the point awarding shortly.

Again thank you very much for your professional support. I really appeciate it.

Regards, Andreas
Avatar of [ fanpages ]
[ fanpages ]

You are very welcome, Andreas.

I am glad I could help.
Again, thank you very much for your great and professional support. It is really hard to award points, since all solutions work.