#1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 227
Default Last Row

Hi scottnshelly

Glad to have helped.

If the last cell in Column A is "Total", then this will delete the entire
row.

Sub test()
If Range("A65000").End(xlUp) = "Total" Then _
Range("A65000").End(xlUp).EntireRow.Delete
End Sub


--
XL2002
Regards

William



"scottnshelly " wrote in
message ...
| thank a lot William,
| that worked perfectly!
| now, i guess i want something that will clear off the row that that
| macro added when the user goes to add another agent. so something
| like:
| range(a4:a).select
| search for 'total'
| clear off that row
|
| thanks.
|
|
| ---
| Message posted from
http://www.ExcelForum.com/
|


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



All times are GMT +1. The time now is 05:00 PM.

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"