Thank you sam!!!! Can you please try in vb script on same On 1/14/12, Sam Mathai Chacko <samde...@gmail.com> wrote: > Sub DelRows() > > Dim wks As Worksheet > > For Each wks In ThisWorkbook.Worksheets > With wks > .Range("A2", > .UsedRange.SpecialCells(xlCellTypeLastCell)(2)).EntireRow.Delete > End With > Next wks > > End Sub > > Regards, > > Sam Mathai Chacko > > On Sat, Jan 14, 2012 at 8:07 AM, yogananda muthaiah < > yogananda.mutha...@gmail.com> wrote: > >> Dear All, >> >> Congrats for all excel macros group users , >> >> I have a excel where data is in Sheet1 to Sheet4. >> >> I would expect from any one of you to provide macro for getting rows >> delete from row 2 to till end >> >> Only Header should remain when macros runs. (i.e Range "A1" should remain) >> >> Please try to help out through excel VBA or VBS >> >> >> >> Regards >> Yogananda Muthaiah >> Ph : 973 123 7267 >> >> -- >> FORUM RULES (986+ members already BANNED for violation) >> >> 1) Use concise, accurate thread titles. Poor thread titles, like Please >> Help, Urgent, Need Help, Formula Problem, Code Problem, and Need Advice >> will not get quick attention or may not be answered. >> >> 2) Don't post a question in the thread of another member. >> >> 3) Don't post questions regarding breaking or bypassing any security >> measure. >> >> 4) Acknowledge the responses you receive, good or bad. >> >> 5) Cross-promotion of, or links to, forums competitive to this forum in >> signatures are prohibited. >> >> NOTE : Don't ever post personal or confidential data in a workbook. Forum >> owners and members are not responsible for any loss. >> >> >> ------------------------------------------------------------------------------------------------------ >> To post to this group, send email to excel-macros@googlegroups.com >> > > > > -- > Sam Mathai Chacko > > -- > FORUM RULES (986+ members already BANNED for violation) > > 1) Use concise, accurate thread titles. Poor thread titles, like Please > Help, Urgent, Need Help, Formula Problem, Code Problem, and Need Advice will > not get quick attention or may not be answered. > > 2) Don't post a question in the thread of another member. > > 3) Don't post questions regarding breaking or bypassing any security > measure. > > 4) Acknowledge the responses you receive, good or bad. > > 5) Cross-promotion of, or links to, forums competitive to this forum in > signatures are prohibited. > > NOTE : Don't ever post personal or confidential data in a workbook. Forum > owners and members are not responsible for any loss. > > ------------------------------------------------------------------------------------------------------ > To post to this group, send email to excel-macros@googlegroups.com >
-- Sent from my mobile device Regards Yogananda Muthaiah Ph : 973 123 7267 -- FORUM RULES (986+ members already BANNED for violation) 1) Use concise, accurate thread titles. Poor thread titles, like Please Help, Urgent, Need Help, Formula Problem, Code Problem, and Need Advice will not get quick attention or may not be answered. 2) Don't post a question in the thread of another member. 3) Don't post questions regarding breaking or bypassing any security measure. 4) Acknowledge the responses you receive, good or bad. 5) Cross-promotion of, or links to, forums competitive to this forum in signatures are prohibited. NOTE : Don't ever post personal or confidential data in a workbook. Forum owners and members are not responsible for any loss. ------------------------------------------------------------------------------------------------------ To post to this group, send email to excel-macros@googlegroups.com