Object required?

  • Thread starter Thread starter Tony
  • Start date Start date
T

Tony

This code snippet produces RT error "Object Required" (424)
and halts on the With ..

Dim r As Range
Set r = Sheets("Sheet1").Range("O13:R21")
With r.Interior.Color
.ColorIndex = 50
.Pattern = xlSolid
End With

What am I not getting here?

Thanks, Tony
 
r.Interior.Color
is a simple value--not an object.

Maybe you wanted:
With r.Interior
 
Thanks - I'm reminded of that great line in Amadeus:

"There are too many notes."

Too many things for my tiny mind to keep track of.

Tony
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top