end subroutine

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I have a macro that is consolidating a text file with lots of white space,
and up to five rows of blank rows when I import the file into Exel.

The macro looks to see if certain types of data are in the row, if not
delete the row (including if the row is blank)

I'd like to tell the sub routine to go to the next subroutine if the ten
rows below the active cell are all blank.

Any suggestions?
Thanks
Melric
 
Perhaps use

Set rng = Activecell.Resize(10,1).Entirerow
If Application.CountA(rng) = 0 Then
'all blank

etc.

--

HTH

RP
(remove nothere from the email address if mailing direct)
 
It worked!!!
Many thanks

Bob Phillips said:
Perhaps use

Set rng = Activecell.Resize(10,1).Entirerow
If Application.CountA(rng) = 0 Then
'all blank

etc.

--

HTH

RP
(remove nothere from the email address if mailing direct)
 

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