Execute a macro with note.vbs

Copper Contributor

Hello,

 

I want to execute a macro using a notepad.vbs, I already have the notepad.vbs but the code open the excel even though it's open

JorgeGBS_0-1674752131525.png

 

dim objExcel
Set objExcel = CreateObject("Excel.Application")
objExcel.Application.Run "'file_path'!macro_name"
objExcel.Visible = false

 

0 Replies