Calling vba function(with parameters) from vbscript and show the result
问题 I have the following vba function ( in a module in Excel file) Public Function validate_fncname(strFncname As String) As Boolean . . . validate_fncname = True End Function and I wrote the following vbscript to call it : Set objExcel = CreateObject("Excel.Application") Set objWorkbook = objExcel.Workbooks.Open("C:\Users\uidu8611\Desktop\CAM0500040F10_SW_Quality_Assurance_Report_Template(new_version).xlsm") objExcel.Application.Visible = True Dim str str ="hello" Dim validate_fncname validate