The VBA code below, searches all the sheet VBA in my workbook for the following path…
Jump to turn (8)
- 1The VBA code below, searches all the sheet VBA in my workbook for the following
- 2Thanks, the code worked. Can you write a similar code that will search all the S
- 3I am getting an error no cells found on the line For Each cell In ws.UsedRange.S
- 4Invalid procedure or call argument on the line linkPath = Mid(cell.Formula, InSt
- 5same error on the line linkPath = Mid(cell.text, InStr(1, cell.text, "http:/"))
- 6Invalid procedure or call error on the line 'linkPath = Mid(cell.text, InStr(1,
- 7code appears to be in a loop
- 8If text string in column A does not appear any where in the text string in colum
- User
The VBA code below, searches all the sheet VBA in my workbook for the following path "G:\Shared drives" and lists it in column L of the sheet 'Linked Docs' with the location of the find in column M.
I want a similar code that will search all the sheets for external links http:/ and https:/ and lists it in the next available cell in column L of the sheet 'Linked Docs' with the location of the find in column M.
Sub SearchVBALinkedDocs() 'SEARCHES VBA OF ALL SHEETS FOR LINK PATH TO G Dim wb As Workbook Dim linkedDocsWs As Worksheet Dim lastRow As Long Dim ws As Worksheet Dim moduleCode As String Dim addressPath As String Dim lineIndex As Long Dim startPos As Long Dim endPos As Long