I'm trying to code something that scans for different files and automatically opens them.
For example: 99 times out of 100, the file is going to be a pdf, so I made this code:
OID = IeApp.Document.body.innerHTML
OIDLEFT = Mid(OID, InStr(1, OID, "oid") + 4, 9) 'this scans the source code for a...