By the way, if your intent after placing the formula into the cell is to
copy it down, you can use a statement like this to do that...
Worksheets("Sheet1").Range("P3:P10").FillDown
Rick
"Rick Rothstein (MVP -
VB)" wrote in
message ...
I know your newsreader will wrap this statement, but it should be put into
your macro on a single line...
Worksheets("Sheet1").Range("P3").Formula =
"=INDEX([FXAppl.xls]Sheet1!$C$1:$C$100,MATCH(LEFT(Sheet3!A1,4)&""*"",[FXAppl.xls]Sheet1!$B$1:$B$100,0))"
Obviously, change the worksheet and cell references to suit your actual
needs.
Rick
"franciz" wrote in message
...
Hi
How can I input this formula into col P via a macro
=INDEX([FXAppl.xls]Sheet1!$C$1:$C$100,MATCH(LEFT(Sheet3!A1,4)&"*",[FXAppl.xls]Sheet1!$B$1:$B$100,0))
thanks
regards, francis