Tengo una Macro en Access la cual me abre un formulario que busca en las carpetas del disco el archivo de excel, al seleccionarlo y ejecutar la macro, transforma el excel a Base de Datos, le da un formato especifico y lo guarda… requiero ejecutar esa macro desde UiPath.
You can use this in invoke code
Dim accessApp As New Microsoft.Office.Interop.Access.Application()
accessApp.OpenCurrentDatabase(FilePath)
accessApp.DoCmd.RunMacro(MacroName)
accessApp.CloseCurrentDatabase()
accessApp.Quit()
Create two input argumentsFilePath
for path of access file and MacroName
for the name of macro to be executed
Cheers
1 Like
I get an error "No compiled code to run error BC30002: Type ‘Microsoft.Office.Interop.Access.Application’ is not defined.
Can you check your imports panel at yhe bottom if Microsoft.Office.Interop
is imported
Cheers
1 Like