Thread: Loop worksheets
View Single Post
  #1   Report Post  
Posted to microsoft.public.excel.misc
merry_fay merry_fay is offline
external usenet poster
 
Posts: 23
Default Loop worksheets

Hi,

I have the following code:
Sub Hardcode()
For Each wks In ActiveWorkbook.Sheets
If Range("A4").Value < 400 Then
Call PriorYr
Call Actuals
Call Budget
Call Forecast
Else
End If
Next wks
Call Delete_Datasheets
End Sub

As far as I can see it's all correct, but the sheets aren't looping (next
wks not working). Does anyone know why or have any suggestions?
The total number of sheets in the workbook varies.

Thanks
merry_fay