Excel VBA - open MS File Explorer Folder where macro just saved a file

2Took

Board Regular
Joined
Jun 13, 2022
Messages
203
Office Version
  1. 365
Platform
  1. Windows
Hello,

I have code that saves a file with a new name to the same folder where original file was.

  1. Need code that will check to see if that folder is already opened, if so, then bring that window upfront. If not already opened, then open it and bring upfront.
  2. If there's a way to also sort the folder to have latest saved file on top, that'd be a cherry on... well, top
 

Excel Facts

Enter current date or time
Ctrl+: enters current time. Ctrl+; enters current date. Use Ctrl+: Ctrl+; Enter for current date & time.
What do you want to do when MS File Explorer opens?

You may have more control if a Userform is loaded with a listbox containing the files in the folder.
 
Upvote 0
What do you want to do when MS File Explorer opens?

You may have more control if a Userform is loaded with a listbox containing the files in the folder.
Sure, but in this case just as described would be great
 
Upvote 0
What do you want to do when MS File Explorer opens?

You may have more control if a Userform is loaded with a listbox containing the files in the folder.
in this case just as described would be great... so, can you do as described in post #1 above?
 
Upvote 0

Forum statistics

Threads
1,215,528
Messages
6,125,342
Members
449,218
Latest member
Excel Master

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