Tim_Excel_
Well-known Member
- Joined
- Jul 12, 2016
- Messages
- 512
Hiya forum,
I'm trying to open some files automatically, which shouldn't be too hard. Unfortunately, so far I've been really held back by the file being located on a weblink. Let's call the weblink http://classifiedlink.com/" & VRl & "type=PDB.
This code works, but not the way I want it. Because it's a hyperlink, both MS and IE ask me if I want to open the file. This stops my VBA code, while I want the Macro to run automatically and without user interference. Does anyone know a way to surpass all the popup windows and open it right away?
Many thanks
I'm trying to open some files automatically, which shouldn't be too hard. Unfortunately, so far I've been really held back by the file being located on a weblink. Let's call the weblink http://classifiedlink.com/" & VRl & "type=PDB.
Code:
Set sh = Workbooks(var1).Worksheets(1)
With sh
lr = .Range("D" & .Rows.Count).End(xlUp).Row
With .Range("D1:D" & lr)
For Each cell In .Offset(1, 0).Resize(lr - 1).SpecialCells(xlCellTypeVisible)
If cell <> "" Then
cell.Select
VRl = ActiveCell
ActiveWorkbook.FollowHyperlink ("http://classifiedlink.com/" & VRl & "type=PDB")
This code works, but not the way I want it. Because it's a hyperlink, both MS and IE ask me if I want to open the file. This stops my VBA code, while I want the Macro to run automatically and without user interference. Does anyone know a way to surpass all the popup windows and open it right away?
Many thanks