LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 154
Default Error: Object required

A bit confused as to the reason for this error. The code has not been
altered and has been running fine for a year or two.........

Public Sub NettRate()

Dim ws As Worksheet
Dim C As Range

For Each ws In Worksheets()
With ws
ws.Unprotect
ws.Select
If Not (UCase(.Name) = "MASTER" Or UCase _ (.Name) =
"SUMMARY" _
Or UCase(.Name) = "CONTENTS" Or _
UCase(.Name) = "COVER") Then

For Each C In Intersect _
(.Range("C:C"), _ ActiveSheet.UsedRange)
If Not IsEmpty(C) Then
If LCase(C.Value) = "qty" Then GoTo Line1
If IsNumeric(C.Value) Or LCase(C.Value) _
= "item" Then
C.Offset(0, 7).Value = _
Application.WorksheetFunction.Sum _
(.Range(C.Offset(0, 2), C.Offset(0, 6)))
Line1:
End If
End If
Next 'C
End If
End With
Next
End Sub

Error occurs on the line:

For Each C In Intersect.......

Regards.


 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Object Required Error Cody Excel Programming 14 August 23rd 05 12:31 AM
Object required error Peter Rump Excel Programming 5 August 15th 05 09:52 AM
Error 424 - Object Required [email protected] Excel Programming 2 December 30th 04 03:38 PM
Syntax Error Runtime Error '424' Object Required sjenks183 Excel Programming 1 January 23rd 04 09:25 AM
error 424 - Object Required blb Excel Programming 0 October 1st 03 05:32 PM


All times are GMT +1. The time now is 06:27 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"