Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Dear experts:
How can we stop the looping using For each... ..next. It worked for me perfectly, but it stuck in the Range x. Copy after it finished copying all my defined range name. Here is my macro: Sub AutoShape7_Click() ' Macro recorded 5/10/2007 by Frank ' ' ActiveWindow.SmallScroll ToRight:=-5 Range("A9:Y1714").Select Selection.ClearContents Dim x As Object For Each x In ActiveWorkbook.Names Range(x).Copy Sheets("SUMMARYWBLA").Select Range("a65000").End(xlUp).Offset(1, 0).PasteSpecial xlPasteAll Next x End Sub Many thanks to all of you that had helped me Frank |