![]() |
Do Until Loop Hlpe
Sub FindLine()
Range("I11").Select Do Until ActiveCell = "Grand Total" MsgBox "Please delete extra rows", vbOKOnly, "Extra Rows Found" Exit Do ActiveCell.Offset(1, 0).Select MsgBox "Please Extend Range" Loop End Sub |
Do Until Loop Hlpe
Stupid Enter key....
The real post is next. "PJFry" wrote: Sub FindLine() Range("I11").Select Do Until ActiveCell = "Grand Total" MsgBox "Please delete extra rows", vbOKOnly, "Extra Rows Found" Exit Do ActiveCell.Offset(1, 0).Select MsgBox "Please Extend Range" Loop End Sub |
All times are GMT +1. The time now is 07:31 PM. |
Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com