Macro to open Folder but not file?

Zorax

Board Regular
Joined
Jan 1, 2003
Messages
182
I have a macro that names and saves a file to a specific folder on a network. This network contains many drives and folders. Every few days the saved files can be deleted but rather than have the user having to search through network drives etc to find the folder, I would like to create a macro that just opens the folder, so that the files can be deleted from there. I have only managed to create a macro that will open a file but not just the folder. Is this possible.

Thanks
 
Hi,

this would definitely be possible but would need to be done with code written using outlook references. Unfortunately I haven't even begun to look at outlook yet so I can't help. A good start would be to go to the tools menu in your VBE and click references. Scroll down to Microsoft Outlook and put a tick in the box next to it before clicking OK. After doing that you will be able to use all of the objects from the Outlook collection in your excel code. If you use the object browser in the VBE to look for words that may be relevant and hit the F1 key after selecting them it should give you a reasonable example of it's uses. Hopefully you'll be able to get something useful from that.

Good luck
 
Upvote 0

Excel Facts

How to change case of text in Excel?
Use =UPPER() for upper case, =LOWER() for lower case, and =PROPER() for proper case. PROPER won't capitalize second c in Mccartney

Forum statistics

Threads
1,216,119
Messages
6,128,941
Members
449,480
Latest member
yesitisasport

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