R
ryguy7272
Hello friends! I have a SharePoint URL, which I define as this:
URL = https://collaboration.co.net/sites/US/Shared Documents/
Here is my VBA:
setrestart:
Set IE = Nothing
Set IE = CreateObject("InternetExplorer.Application")
With IE
.navigate URL
.Visible = False
'Wait for page to load
While .Busy Or .readyState <> 4 Or IE.Busy = True: Wend
Set HTMLdoc = .document
End With
Application.StatusBar = "Processing your Request. Please wait..."
xlFile = strpath & "/" & strFullString & ".xls" '& ActiveWorkbook.Name
activeWB = strFullString & ".xls"
Now . . . I’m trying to see if files are checked out from the
SharePoint site, so I’m thinking of using a line of VBA, as such
If InStr(1, URL, "Checked Out To:") > 1 Then
‘ . . . do something
End If
Of, course, the URL is just the string from above. What I really want
to do is something like go into IE > View > Source . . . THEN and only
then, I can start to use my If InStr command. I’m sure I’ll have a
combination of If InStr commends, actually.
So, my question is, how do I get something like IE > View > Source and
assign that to some variable, URL2, or whatever?
Thanks!!!
URL = https://collaboration.co.net/sites/US/Shared Documents/
Here is my VBA:
setrestart:
Set IE = Nothing
Set IE = CreateObject("InternetExplorer.Application")
With IE
.navigate URL
.Visible = False
'Wait for page to load
While .Busy Or .readyState <> 4 Or IE.Busy = True: Wend
Set HTMLdoc = .document
End With
Application.StatusBar = "Processing your Request. Please wait..."
xlFile = strpath & "/" & strFullString & ".xls" '& ActiveWorkbook.Name
activeWB = strFullString & ".xls"
Now . . . I’m trying to see if files are checked out from the
SharePoint site, so I’m thinking of using a line of VBA, as such
If InStr(1, URL, "Checked Out To:") > 1 Then
‘ . . . do something
End If
Of, course, the URL is just the string from above. What I really want
to do is something like go into IE > View > Source . . . THEN and only
then, I can start to use my If InStr command. I’m sure I’ll have a
combination of If InStr commends, actually.
So, my question is, how do I get something like IE > View > Source and
assign that to some variable, URL2, or whatever?
Thanks!!!