Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

how come the REPLACE() not working in 2010 Excel

Status
Not open for further replies.

feipezi

IS-IT--Management
Aug 10, 2006
316
US
Hi,

The following code's been working for thousands times but I got runtime error "1004" as ran it on 2010 Excel. What can be wrong? I switched to R1C1 formula style and get the same thing. "1004" means something cannot be found. What the heck is it?

Thanks in advance.


Sub FixREF()
Sheets("ViewGraphs").Activate
Range("c151:eek:155,c192:eek:196").Select
For Each c In Selection
c.Formula = Replace(c.Formula, "#REF", "AreaMetrics!$A$1:$AD$1000")
Next
End Sub

 
Go to Tools - References... and look for any references that start with the word:[tt]
MISSING ...[/tt]

Have fun.

---- Andy
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top