What is the error and did you set a reference to the excel runtime library ?