i tried bellow code but it open the worbook as read only if the workbook is previously open.
when running the macro it will add 1 to cell F9, when running the macro via vbscript same workbook will open as read only and run the macro.
apreciate your help
Expand|Select|Wrap|Line Numbers
- Set xl = CreateObject("Excel.application")
- xl.Application.Workbooks.open "C:\Users\redree\Desktop\project1.xlsm"
- xl.Application.Visible = True
- xl.Application.run "'project1.xlsm'!copy"
- Set xl = Nothing