If there are no values in row 37 delete it

  • Thread starter Thread starter Himszy
  • Start date Start date
Hi Himszy

Try this for the activesheet

If Application.CountA(Rows(37)) = 0 Then Rows(37).Delete
 
If worksheetfunction.counta(Rows("37:37")) = 0 Then
Rows(37).entirerow.delete
end if

--

HTH

RP
(remove nothere from the email address if mailing direct)
 
Bob Phillips said:
If worksheetfunction.counta(Rows("37:37")) = 0 Then
Rows(37).entirerow.delete
end if

--

HTH

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

Relating to this, whats the code for saying that if the cell contans a enter
the b to the cell beneath it.
 
set theCell = ActiveCell
if lcase(theCell.value) = "a" then
thecell.offset(1,0).Value = "b"
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

Back
Top