texasalynn
Well-known Member
- Joined
- May 19, 2002
- Messages
- 8,458
I've been staring at this for an hour and can't find the problem.
The line Range("A2")... gets an error application-defined or object-defined error. What am I missing here?
Code:
Set rngFound = Cells.Find(What:=MyData, After:=ActiveCell, _
LookAt:=xlPart, MatchCase:=True)
f = rngFound.Address
df = "'" & ShName & "'!" & f
Worksheets(ShName2).Activate
Range("A2").FormulaR1C1 = _
"=RIGHT(" & df & ")"
The line Range("A2")... gets an error application-defined or object-defined error. What am I missing here?