Hello I need a macro to delete all rows except row 1 thanks
W Wanna Learn Mar 6, 2007 #2 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
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
D Don Guillett Mar 6, 2007 #3 good up until xl2007. SAVE workbook. Sub deleteallrowsbut1() Rows("2:65536").Delete End Sub
S Sandy Mann Mar 6, 2007 #4 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 [email protected] [email protected] with @tiscali.co.uk
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 [email protected] [email protected] with @tiscali.co.uk
D Don Guillett Mar 6, 2007 #5 I do have xl2007 courtesy of special MicroSoft introduction but still in the box until I get a new computer. I assume that would work but there sure are a lot of rows....
I do have xl2007 courtesy of special MicroSoft introduction but still in the box until I get a new computer. I assume that would work but there sure are a lot of rows....
S Sandy Mann Mar 6, 2007 #6 Thank you Don. -- Sandy In Perth, the ancient capital of Scotland and the crowning place of kings [email protected] [email protected] with @tiscali.co.uk
Thank you Don. -- Sandy In Perth, the ancient capital of Scotland and the crowning place of kings [email protected] [email protected] with @tiscali.co.uk