Microsoft Office Forums

Go Back   Microsoft Office Forums > >

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #4  
Old 09-12-2015, 12:59 AM
gmayor's Avatar
gmayor gmayor is offline Sofware or VBA Code to remove Attachments Windows 7 64bit Sofware or VBA Code to remove Attachments Office 2010 32bit
Expert
 
Join Date: Aug 2014
Posts: 4,142
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

Outlook VBA is very similar to Excel VBA, once you open the VBA editor. Insert a module in Project1 and copy allo the code there. Then locate the line
Code:
Const strSaveFldr As String = "D:\Path\Reports\"
and change that to reflect where you want the attachments to be saved.

Copy a message with attachments to a new Outlook folder, select it and run the macro ProcessAttachment. This will demonstrate how it works. If you are happy with the outcome, run the ProcessFolder macro, which will give you a prompt to select the folder to process.

You cannot run the macro from Excel, without extensive modification to it, and it only adds another set of potential problems to do so.
__________________
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
 



Similar Threads
Thread Thread Starter Forum Replies Last Post
Suggestion for powerpoint presentation on sofware products jamesdann PowerPoint 0 01-08-2014 02:57 AM
Sofware or VBA Code to remove Attachments Attachments katemchugh Office 1 03-15-2012 09:22 PM
outlook 2003 always not remove temp copy of opened attachments in temporary folder c.itech Outlook 0 06-20-2011 10:34 PM
Sofware or VBA Code to remove Attachments code to save / rename / send attachments unit213 Outlook 1 09-26-2007 08:15 PM
Attachments Ane Outlook 0 05-29-2006 04:09 AM

Other Forums: Access Forums

All times are GMT -7. The time now is 10:52 PM.


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