How to open files in VBA for excel on a "portable device" / "external device" / "mobile device"

Bernst

New Member
Joined
May 19, 2022
Messages
16
Office Version
  1. 2013
Platform
  1. Windows
Hello All.

in advance: My native language is NOT english, sorry for eventually missunderstandings.

Since several days I'm searching the internet for a solution to open files directly on my navigation-device (Garmin nüvi 2597LMT).
I found some ideas and snippets, but I didn't find the final solution.
Whith these ideas and snippets I figured out the following:

When I enter "::{20D04FE0-3AEA-1069-A2D8-08002B30309D}\\\?\usb#vid_091e&pid_462e#0000e7bd0f18#{6ac27878-a6fa-4155-ba85-f98f491d4f33}\Internal Storage\GPX\Archive\" into the windows-explorer, it will change the directory (from everywhere) to the named GPX-Archive on my external device (nüvi 2597LMT)

When I enter "::{20D04FE0-3AEA-1069-A2D8-08002B30309D}\\\?\usb#vid_091e&pid_462e#0000e7bd0f18#{6ac27878-a6fa-4155-ba85-f98f491d4f33}\Internal Storage\GPX\Archive\myTracks.gpx" into the windows explorer, it will open the file "myTracks.gpx" in the editor.

What I'm looking for is something similar like:
For Each strFile in Folders.Files
Open strFile
Next strFile

Does anybody can help me?
Thanks in advance,
Berny
 

Excel Facts

Using Function Arguments with nested formulas
If writing INDEX in Func. Arguments, type MATCH(. Use the mouse to click inside MATCH in the formula bar. Dialog switches to MATCH.
Hi All.

What I forgot to say, is:
Whether the file-dialog-box of excel nor the file-dialog-box of vba for excel let me open the file!
Doesn't matter which way I use - the one with the cryptic looking path or by the step by step folder selection.

Even the file-dialog-box of the windows-explorer does it in both ways!

Is there maybe a DLL-file I have to link/connect to the vba, which contains commands similar to the commands of the filesystem?
And if "yes" which ones and how do i have to use it (example file/snippets would be fine - remember, I'm just an autodidact ;))

Many thanks, in advance,
Berny
 
Upvote 0

Forum statistics

Threads
1,223,275
Messages
6,171,127
Members
452,381
Latest member
Nova88

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top