I have the following script "MyTest.vbs" :
Dim objXLApp
Set objXLApp = CreateObject("Excel.Application")
objXLApp.visible= True
objXLApp.DisplayAlerts = false
objXLApp.Workbooks.Open "F:MyFolder\test.xlsm"
objXLApp.Run "test.xlsm!Module1.main"
objXLApp.Workbooks("test.xlsm").Save
objXLApp.Workbooks("test.xlsm").Close
When I run the script, the following error appear :
Be careful! Parts of your document may include personal information that cannot be removed by the document inspector.
I know that I can fix this error manually, but I would like disable this error with code.
Someone knows how ?