formula problem inside a macro

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

'E3' has a value like, day19 in he active sheet
C5 has a number in sheet,day19.
A1 in active sheet =INDIRECT("'" & $E$3 & "'!C"&ROW(5:5)).
This reference works good normally. But when put inside a macro,
gives a runtime error '1004'.
Please help.
 
Could be a number of things, but one likely problem is that quotation
marks (") inside quoted strings need to be doubled, e.g.:

=INDIRECT(""'"" & $E$3 & ""'!C""&ROW(5:5))
 
Back
Top