Home |
Search |
Today's Posts |
#5
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Now it works...
here you are the code: Sub UseCanCheckOut() Dim xlApp As Excel.Application Dim wb As Workbook Dim xlFile As String xlFile = "http://test:8080/PWA/Project Documents/00 MS Excel File/ BookTest.xls" 'Determine if workbook can be checked out. If Workbooks.CanCheckOut(xlFile) = True Then Workbooks.CheckOut xlFile Set xlApp = New Excel.Application xlApp.Visible = True Set wb = xlApp.Workbooks.Open(xlFile, , False) MsgBox wb.Name & " is checked out to you." Else ' MsgBox "You are unable to check out this document at this time." End If End Sub cheers vit |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Pivot Table Source Link changed when file saved to SharePoint site | Excel Discussion (Misc queries) | |||
Having problems saving pdf's from excel to a sharepoint site. | Excel Programming | |||
Possible to import data from spreadsheets on sharepoint site? | Excel Discussion (Misc queries) | |||
Can a Macro open workbooks on a SharePoint Site? | Excel Discussion (Misc queries) | |||
Open excel file from password protected Intranet site(IE) | Excel Programming |