Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 318
Default Delete all Rows Macro

Hello I need a macro to delete all rows except row 1 thanks
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 318
Default Delete all Rows Macro

Me again ... What I need is a macro to delete all rows except row 1 and also
delete all formating e.g. borders, patterns thanks again
"Wanna Learn" wrote:

Hello I need a macro to delete all rows except row 1 thanks

  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 10,124
Default Delete all Rows Macro

good up until xl2007. SAVE workbook.

Sub deleteallrowsbut1()
Rows("2:65536").Delete
End Sub


--
Don Guillett
SalesAid Software

"Wanna Learn" wrote in message
...
Hello I need a macro to delete all rows except row 1 thanks



  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 2,345
Default Delete all Rows Macro

Don,

Out of interest, (assuming you have XL2007), would:

Sub AllButOne()
Rows("2:" & Rows.Count).Delete
End Sub

work in all versions?

--

Sandy
In Perth, the ancient capital of Scotland
and the crowning place of kings


with @tiscali.co.uk


"Don Guillett" wrote in message
...
good up until xl2007. SAVE workbook.

Sub deleteallrowsbut1()
Rows("2:65536").Delete
End Sub


--
Don Guillett
SalesAid Software

"Wanna Learn" wrote in message
...
Hello I need a macro to delete all rows except row 1 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
Macro to Delete Certain Rows HROBERTSON Excel Discussion (Misc queries) 2 February 8th 07 09:42 PM
delete rows using macro nospam Excel Worksheet Functions 5 December 20th 06 01:26 PM
delete rows in range - macro hindu cliparts Excel Worksheet Functions 0 November 16th 06 09:54 PM
Macro to find and delete rows! Heather O'Malley Excel Discussion (Misc queries) 2 April 12th 06 01:53 PM
delete rows-macro TUNGANA KURMA RAJU Excel Discussion (Misc queries) 5 January 13th 06 12:01 PM


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