Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 26
Default If there are no values in row 37 delete it

Hi

How do I write a code that says that.

Thanks


  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3,885
Default If there are no values in row 37 delete it

Hi
see:
http://www.cpearson.com/excel/deleti...eleteBlankRows

--
Regards
Frank Kabel
Frankfurt, Germany
"Himszy" schrieb im Newsbeitrag
. ..
Hi

How do I write a code that says that.

Thanks




  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,123
Default If there are no values in row 37 delete it

Hi Himszy

Try this for the activesheet

If Application.CountA(Rows(37)) = 0 Then Rows(37).Delete


--
Regards Ron de Bruin
http://www.rondebruin.nl


"Himszy" wrote in message . ..
Hi

How do I write a code that says that.

Thanks




  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,272
Default If there are no values in row 37 delete it

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)


"Himszy" wrote in message
. ..
Hi

How do I write a code that says that.

Thanks




  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 26
Default If there are no values in row 37 delete it


"Bob Phillips" wrote in message
...
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)


"Himszy" wrote in message
. ..
Hi

How do I write a code that says that.

Thanks





Relating to this, whats the code for saying that if the cell contans a enter
the b to the cell beneath it.




  #6   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default If there are no values in row 37 delete it

set theCell = ActiveCell
if lcase(theCell.value) = "a" then
thecell.offset(1,0).Value = "b"
End if

--
Regards,
Tom Ogilvy

"Himszy" wrote in message
. ..

"Bob Phillips" wrote in message
...
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)


"Himszy" wrote in message
. ..
Hi

How do I write a code that says that.

Thanks





Relating to this, whats the code for saying that if the cell contans a

enter
the b to the cell beneath it.




Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Delete all zero values Dennis1188 Excel Discussion (Misc queries) 3 March 12th 07 12:13 PM
delete the test values, but do not delete the formulas kathy Excel Discussion (Misc queries) 1 February 21st 07 07:03 PM
Delete duplicate values NNothard Excel Discussion (Misc queries) 4 June 26th 06 04:43 PM
delete all values in column? L. Irvine Excel Worksheet Functions 1 June 16th 06 04:17 PM
Delete row containing all previous values. mohd21uk via OfficeKB.com New Users to Excel 1 May 10th 06 01:57 PM


All times are GMT +1. The time now is 02:35 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"