Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default how to delete a row

there is no reason to retrieve the row number and feed it to the rows
object. Just use what you find directly

cells(rows.count,1).End(xlup).EntireRow.Delete

go to the bottom of the spreadsheet. Select cell A65536. Hit the end
button, then the up arrow, then do Edit= delete and select Entire Row

That is pretty much it.

--
Regards,
Tom Ogilvy


"Newbie" wrote in message
...
Thanks works a treat

Is it possible for you to explain the syntax or tell me where I can find

out
about it

Thanks again
"Don Guillett" wrote in message
...
try

rows(cells(rows.count,"a").end(xlup).row).delete

--
Don Guillett
SalesAid Software

"Newbie" wrote in message
...
Hi,

I want to be able to - on the click of a button - find the last row in

a
list and delete the complete line.

How do I do this?

Thanks








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 the test values, but do not delete the formulas kathy Excel Discussion (Misc queries) 1 February 21st 07 07:03 PM
How can I delete a macro when the Delete button is not active? FCR Excel Worksheet Functions 0 March 9th 06 09:43 AM
How to Delete a Range in Closed Workbook (to Replace Delete Query) [email protected] Excel Discussion (Misc queries) 1 March 8th 06 10:10 AM
How do i delete a macro in Excel 2003 when delete isn't highlight Abel Excel Discussion (Misc queries) 2 September 13th 05 04:09 AM
How to delete rows when List toolbar's "delete" isnt highlighted? Linda Excel Worksheet Functions 1 May 26th 05 08:39 PM


All times are GMT +1. The time now is 03:35 PM.

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

About Us

"It's about Microsoft Excel"