i'm trying put a formula in specific cell into a Excel, so i do a link between two excel for do this formula. I have this code, but i dont know, how use it for can obtein it that i will realize. i'm amateur in this area and need to help for can do that. my code is this
Set app = CreateObject("Excel.Application")
app.Visible = True
app.Workbooks.Open("C:\MODERNO\REPORTES\RESUMENFACTURA.XLS")
app.Worksheets(1).Cells(2, 17).formula = "=INDEX([Moderno.XLS]ART015!$J:$J;MATCH(P2; [Moderno.XLS]ART015!$P:$P;0))"
