Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hi all
This works but I have to press Esc key to stop the macro. I've been reading up on loops but need more time to work with them. Sub ChangeNames() Sheets("Sheet2").Select Application.Goto Reference:="R2C5" Do Cells.Find(What:="Test1", After:=ActiveCell, LookIn:=xlValues, LookAt:= _ xlPart, SearchOrder:=xlByColumns, SearchDirection:=xlNext, MatchCase:= _ False, SearchFormat:=False).Activate Sheets("Tests htmls").Select Application.Goto Reference:="R1C1" Selection.Copy Sheets("Sheet2").Select ActiveSheet.Paste Loop Until IsEmpty(ActiveCell.Offset(0, 0)) End Sub I also have items in A2 to A37 "Tests htmls" I'd like to change in sheet2 col E, is there a way to do this all in one macro, rather than have 37 macros. Thanks in advace Dave |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Stop Loop | Excel Programming | |||
Do Loop doesn't stop | Excel Programming | |||
Stop Loop | Excel Programming | |||
how to stop a loop | Excel Programming | |||
HELP!!!! Can't stop a loop (NOT an infinite loop) | Excel Programming |