Any Ideas Why this is not working? Microsoft Edge will not open a file location

razzandy

Active Member
Joined
Jun 26, 2002
Messages
359
The below code manages to Open a New Tab in Edge but doesn't navigate to the address to open the file. I have tried removing file:/// and it does enter the directory but it then performs a web search instead of opening the file.

VBA Code:
Shell Environ$("comspec") & " /c start microsoft-edge:file:///C:/Users/Work/OneDrive/CloudStation/Systems/eBay%20Lister/Templates/TempListingView.html" 'Edge
Thanks in ada
 

Some videos you may like

Excel Facts

Links? Where??
If Excel says you have links but you can't find them, go to Formulas, Name Manager. Look for old links to dead workbooks & delete.

jasonb75

Well-known Member
Joined
Dec 30, 2008
Messages
9,579
Office Version
2019
Platform
Windows
Take a look here, the article is a couple of years old but the post that I've linked to might explain why it doesn't work (I didn't read it in detail), if you scroll up there is also another reply on that page which appears to show a possible 'fix'
 

Watch MrExcel Video

Forum statistics

Threads
1,099,375
Messages
5,468,238
Members
406,575
Latest member
Joe00

This Week's Hot Topics

Top