Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
smf smf is offline
external usenet poster
 
Posts: 2
Default Delete rows Macro

Hi,

I need a macro that will select all rows from below the last entry to the
end of the workbook, and delete them. Deleting is fine, but can't get it to
find the last row with data and choose from below.

Ta,


  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,272
Default Delete rows Macro

You cannot actually delete those rows, there will always be 65536 rows. If
you delete the last say 10 rows, Excel just inserts 10 new ones.

--

HTH

Bob Phillips

(remove nothere from the email address if mailing direct)

"smf" wrote in message
...
Hi,

I need a macro that will select all rows from below the last entry to the
end of the workbook, and delete them. Deleting is fine, but can't get it

to
find the last row with data and choose from below.

Ta,




  #3   Report Post  
Posted to microsoft.public.excel.programming
smf smf is offline
external usenet poster
 
Posts: 2
Default Delete rows Macro

Ok, thats fine. That is what I want to do.

"Bob Phillips" wrote:

You cannot actually delete those rows, there will always be 65536 rows. If
you delete the last say 10 rows, Excel just inserts 10 new ones.

--

HTH

Bob Phillips

(remove nothere from the email address if mailing direct)

"smf" wrote in message
...
Hi,

I need a macro that will select all rows from below the last entry to the
end of the workbook, and delete them. Deleting is fine, but can't get it

to
find the last row with data and choose from below.

Ta,





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
Macro to delete rows Hankjam[_2_] Excel Discussion (Misc queries) 4 October 1st 08 03:58 PM
delete rows using macro nospam Excel Worksheet Functions 5 December 20th 06 01:26 PM
Using a Macro to delete all rows containing #N/A Shirley Munro[_4_] Excel Programming 4 September 6th 05 01:51 PM
macro to delete entire rows when column A is blank ...a quick macro vikram Excel Programming 4 May 3rd 04 08:45 PM


All times are GMT +1. The time now is 10:10 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"