Analyze_This
Board Regular
- Joined
- Oct 29, 2008
- Messages
- 122
Good afternoon everyone,
I'm trying to write a macro to open a workbook in SharePoint, check it out, do my thing (technical term), and then check in/close the workbook. I've managed to get the book open, but I get an error when trying to check out or check in. Any thoughts? Here is the code I'm using:
Sub WorkDamnit()
Workbooks.Open Filename:= _
"http://xxxxxxxxx.xlsx"
'THIS IS SUPPOSED TO CHECK OUT, BUT GIVES ERROR
ExecuteExcel4Macro _
"(""http://xxxxxxxxx.xlsx"",48)"
'HERE IS MY CODE
'SUPPOSED TO CHECK IN, BUT GIVES ERROR
ExecuteExcel4Macro _
"(TRUE,"""",FALSE,0,""http://xxxxxxx.xlsx"",0,0)"
End Sub
I'm trying to write a macro to open a workbook in SharePoint, check it out, do my thing (technical term), and then check in/close the workbook. I've managed to get the book open, but I get an error when trying to check out or check in. Any thoughts? Here is the code I'm using:
Sub WorkDamnit()
Workbooks.Open Filename:= _
"http://xxxxxxxxx.xlsx"
'THIS IS SUPPOSED TO CHECK OUT, BUT GIVES ERROR
ExecuteExcel4Macro _
"(""http://xxxxxxxxx.xlsx"",48)"
'HERE IS MY CODE
'SUPPOSED TO CHECK IN, BUT GIVES ERROR
ExecuteExcel4Macro _
"(TRUE,"""",FALSE,0,""http://xxxxxxx.xlsx"",0,0)"
End Sub