Hi,

I am working on creating an add-in in excel 2007 using visual studio 2005. I need to create a browse button in one of the cells in excel and i need to do it dynamically from visual studio. I have been able to create a form control button but, it needs a macro as its on-action event.

The problem is how to create a macro dynamically. I can then write the code for file open in the macro.

Does anybody know how to do it?

Thanks,
Dhruvan.