ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   simple loop macro (https://www.excelbanter.com/excel-programming/313800-simple-loop-macro.html)

jim27[_3_]

simple loop macro
 

I worked it out!

Do
Rows("1:1").Select
Selection.Delete Shift:=xlUp
Loop Until Range("a1") 0

End Sub

I am so pleased. No offence Bob, but you explanation for a complet
novice like me was a bit complicated but thanks for trying! I know th
code worked but I did not understand it

--
jim2

-----------------------------------------------------------------------
jim27's Profile: http://www.excelforum.com/member.php...fo&userid=1537
View this thread: http://www.excelforum.com/showthread.php?threadid=26996



All times are GMT +1. The time now is 05:13 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com