Thread: Named ranges
View Single Post
  #1   Report Post  
Posted to microsoft.public.excel.programming
Barb Reinhardt Barb Reinhardt is offline
external usenet poster
 
Posts: 54
Default Named ranges

I want to set up a generic names range based upon the entry in a cell on the
worksheet.

I have the following:

For r = 1 To nms.Count
If nms(r).Name Like aWSName And nms(r).Name Like
"*Actual_Total*" Then
Worksheets(aWS).Names.Add Name:="GenericActual",
RefersTo:=nms(r).name
End If
Next r

When I do it this way, I get a type mismatch.

Any suggestions?

Thanks,
Barb Reinhardt

BTW, I'm having difficulty reading any postings on the Microsoft site
directly using IE 6.0. I had to post this using Outlook Express.