Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hello. I have the following code:
Sub CostCenter() Dim ws As Worksheet Application.ScreenUpdating = False For Each ws In Worksheets If ws.Name < "Consolidate" Then Set frng = Range("B8:B125") With frng .Formula = "=$C$2" End With End If Next ws Application.ScreenUpdating = True End Sub It enters the formula on 1 sheets only, and does not loop through all worksheets within the workbook except "Consolidate". What am I doing wrong?? |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
For..Next..Loop | Excel Discussion (Misc queries) | |||
Find loop doesn't loop | Excel Discussion (Misc queries) | |||
Do Loop Vs For Each | Excel Discussion (Misc queries) | |||
Worksheet_Change - loop within a loop | Excel Programming | |||
HELP!!!! Can't stop a loop (NOT an infinite loop) | Excel Programming |