Microsoft Office Forums

Go Back   Microsoft Office Forums > >

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #4  
Old 11-03-2015, 02:07 AM
gmayor's Avatar
gmayor gmayor is offline Outlook VBA to open a windows folder Windows 7 64bit Outlook VBA to open a windows folder Office 2010 32bit
Expert
 
Join Date: Aug 2014
Posts: 4,144
gmayor has much to be proud ofgmayor has much to be proud ofgmayor has much to be proud ofgmayor has much to be proud ofgmayor has much to be proud ofgmayor has much to be proud ofgmayor has much to be proud ofgmayor has much to be proud ofgmayor has much to be proud of
Default

OK, you need a simple function to open Windows Explorer e.g.
Code:
Sub OpenAtFolder(strPath As String)
    Shell "cmd /C start """" /max """ & strPath & """", vbHide
lbl_Exit:
    Exit Sub
End Sub
and you can call it from your code e.g.
Code:
    If MsgBox("Do you want to open the folder..?", vbYesNo) = vbYes Then
        OpenAtFolder "C:\OutlookAttachments\"
    End If
__________________
Graham Mayor - MS MVP (Word) (2002-2019)
Visit my web site for more programming tips and ready made processes www.gmayor.com
Reply With Quote
 

Thread Tools
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
Outlook 2010: Saving attachments opens up wrong windows folder to save in jeroen Outlook 0 09-29-2015 01:51 AM
Outlook VBA to open a windows folder How to open Documents folder directly from CTRL+O of Open folder on QAT scvjudy Word 2 08-11-2014 10:58 PM
Cannot open folder in Outlook marketshare Outlook 0 03-17-2013 04:07 PM
Outlook VBA to open a windows folder Outlook slow to open folder rtankersley Outlook 1 09-16-2008 05:42 AM
Programatically open Outlook folder (set focus) using RDO? NicMic Outlook 0 01-10-2008 03:27 PM

Other Forums: Access Forums

All times are GMT -7. The time now is 05:25 AM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2025, vBulletin Solutions Inc.
Search Engine Optimisation provided by DragonByte SEO (Lite) - vBulletin Mods & Addons Copyright © 2025 DragonByte Technologies Ltd.
MSOfficeForums.com is not affiliated with Microsoft