Issue. One of the more frequent Outlook questions I see here on EE is "How can I automatically save or print an email and/or its attachments?" There are a number of variations to the basic question. For example, "How can I save attachments to a specific file system folder?" or "How can I print a message and all its attachments to a specific printer?" or "How can I print a specific type of attachment?" or "My organization places a strict limit on mailbox size. How can I save attachments to the file system and insert a link to them in the original message thereby saving space in my mailbox?".
Background. Outlook’s rules wizard does include the "print it" action which will print the message, but will not print the attachments. If you manually print an item, then you can elect to print the attachments too, but only to the default printer. The rules wizard does not include an action for saving a message or attachment to the file system, nor saving and replacing attachments with hyperlinks to them.
Solution. The solution is to use a bit of scripting, a macro, and a rule to perform the desired actions. The rule is triggered when an item meeting a given condition arrives. The rule calls the macro which performs the actual work.
Until now I’ve handled each question requesting one of these capabilities individually. That is, I wrote a custom macro to address each author’s specific needs. If the author wanted to print a given attachment, then I produced a macro that would do just that. If instead they wanted to save and remove attachments replacing them with hyperlinks in the message itself, then I wrote a macro for that alone.
Recently I saw another of these questions and decided it was time to put together a macro that would handle almost any of these situations. This macro has the ability to perform any combination of the following actions:
a. Print the message.
b. Print the message to a specific printer.
c. Save the message to a specific folder in the file system.
d. Save the message in a specific format.
e. Print all attachments.
f. Print only certain types of attachments (e.g. all .doc, .wks, .pdf).
g. Print attachments to a specific printer.
h. Save attachments to a specific folder in the file system.
i. Remove (save and delete) attachments replacing each with a hyperlink to the saved attachment.
The hyperlinks are inserted at the bottom of the message.
Requirements. Microsoft Outlook. The macro should work with any version of Outlook from 2000 on, but I’ve only tested it with 2007. The instructions assume that you are using Outlook 2007.
Instructions. Follow these instructions to use this solution.
Add the Macro to Outlook
a. Start Outlook.
b. Click Tools > Macro > Visual Basic Editor.
c. If not already expanded, expand Microsoft Office Outlook Objects.
d. If not already expanded, expand Modules.
e. Select an existing module (e.g. Module1) by double-clicking on it or create a new module
by right-clicking Modules and selecting Insert > Module.
f. Copy the code below and paste it into the right-hand pane of Outlook's VB Editor window.
g. Edit the code as needed. I included comments wherever something needs to or can change.
h. Click the diskette icon on the toolbar to save the changes.
- 2
Create a Subroutine That Calls the Macro
We can’t call the macro directly from a rule since the macro requires parameters to tell it what actions to take and we can’t pass those parameters from a rule. Instead you need to create a subroutine of your own that calls the macro and tells it which actions you want it to perform for the given message. You can create as many subroutines as you need. Typically you’ll have one subroutine for each set of actions you want to perform.
For example, assume that you receive messages pertaining to a project you’re working on, we’ll call it Project X, and you receive a daily message from accounting that includes a rather large spreadsheet attachment. You want to automatically print and save theProject X messages, while for the accounting messages you want to remove the attached spreadsheet and replace it with a hyperlink. Since the actions are required are different you’d need to create a subroutine for each. You can create your subroutine(s) in the same module with the other macro code or you can place it in another module. The decision is yours.
To create a subroutine:
a. Start Outlook.
b. Click Tools > Macro > Visual Basic Editor.
c. If not already expanded, expand Microsoft Office Outlook Objects.
d. If not already expanded, expand Modules.
e. Select an existing module (e.g. Module1) by double-clicking on it or create a new module by
right-clicking Modules and selecting Insert > Module.
f. Copy the code below and paste it into the right-hand pane of Outlook's VB Editor window.
g. Edit the code. At a minimum you must give the subroutine a unique name and you must
set the parameters.
h. Click the diskette icon on the toolbar to save the changes.
Parameters.
The macro takes a maximum of nine parameters. In the code below these are represented as P1 through P9. The parameters are positional (i.e. they must appear in the sequence given).
P1. Print the message.
Tells the macro to print the email. Valid values are True or False.
P2. Save the message.
Tells the macro to save the email to the file system. Valid values are True or False.
P3. Print the attachments.
Tells the macro to print the attachments. Valid values are True or False.
P4. Save the attachments.
Tells the macro to save the attachments. Valid values are True or False.
P5. Remove attachments.
Tells the macro to remove the attachments and insert hyperlinks to them at the bottom of the message. Valid values are True or False.
P6. Attachment types.
Tells the macro what attachment types to save/print. The macro will only process attachments that match the file types. This parameter is a comma separated list of file extensions. For example, to only process Word documents (both 2007 and earlier) you’d set this parameter to "doc,docx".
P7. Target file system folder.
This tells the macro which file system folder to save the message and/or attachments to. Valid values are any existing file system folder, including network shares and UNC paths. If you’ve told the macro to save the message and/or attachments and you fail to specify this parameter, then the macro will save the items to your My Documents folder.
P8. Message save format.
Tells the macro what format to save the message in (assuming that you are saving the message). You will be prompted with a list of valid values when you enter this parameter.
P9. Printer name.
Tells the macro what printer to print the message and/or attachments to. This allows you to print to any printer, not just the default printer. Valid values include the name of any printer that appears in your list of printers. If you’ve told the macro to print the message and/or attachments and you don’t specify a printer, then the macro will print them to your default printer.
All the parameters are optional so you can omit those that you don’t need.
Examples Of Usage
- You want to print all messages to the default printer.
MessageAndAttachmentProcessor Item, True
- You want to print all messages to a non-default printer named "HP Deskjet 3320".
MessageAndAttachmentProcessor Item, True, , , ,,,,,"HP Deskjet 3320"
- You want to save all attachments to a folder on your C: drive named "Project X".
MessageAndAttachmentProcessor Item,,,,True,,"C:\Project X"
- You want to remove all PDF attachments to a folder on your C: drive named "Accounting" and insert a hyperlink to the saved attachment.
MessageAndAttachmentProcessor Item,,,,True,True,"pdf","C :\Accounti ng"
- You want to print all Word documents to the default printer.
MessageAndAttachmentProcessor Item,,,True,,"doc,docx"
- 3
Configure Security
a. Click Tools > Trust Center.
b. Click Macro Security.
c. Set Macro Security to Warnings for all macros.
d. Click OK.
e. Close Outlook.
f. Start Outlook.
- 4
Create a Rule that Triggers the Subroutine
a. Click Tools > Rules and Alerts.
b. Click the New Rule button.
c. Under "Start from a blank rule" select Check messages when they arrive.
d. Click the Next button.
e. Select a condition for the messages you want to process. If you want the macro to run against
all messages, then don’t select a condition. Outlook will display a dialog-box warning you
that "This rule will be applied to every message you receive. Is this correct?". ClickYes.
f. Click the Next button.
g. Place a check in the box next to run a script.
h. In the lower pane click the underlined a script. Select your subroutine as the script to run.
i. Work your way through the rest of the Rules Wizard.
35 comments:
Or take Print Tools and Attachments Processor from MAPILab (www.mapilab.com)
Ð’ut in contrast to macros they are not free ;)
WBR, Aleksandr
Ok, I cannot get this to work, please help, I just want to print all the attachments in an email, not matter the file format. I just get errors every time I try to configure the last bit.
Great blog! I really love how it is easy on my eyes and the information are well written.
123HP officejet 3834 Printer Support
Excellent information.I like the way of writing and presenting
123 hp oj3834 setup
Really its very useful information that you have shared and thanks for sharing the information with us.
123 HP envy126
Really good for Automatically Printing/Saving Emails/Attachments in Outlook. Thanks for sharing 123.hp.com/setup
Stunning topics www.hp.com/eprint/oj6830 Thank you for sharing.
How to clear a paper jam from input tray 123 hp deskjet, How to clear a paper jam from input tray 123 hp envy, How to clear a paper jam from input tray 123 hp envy photo, How to clear a paper jam from input tray 123 hp officejet, How to clear a paper jam from input tray 123 hp officejet pro,
Exceptional articles 123.hp.com Thanks for sharing useful information.
https://goo.gl/9pQTQo
https://goo.gl/ofegNB
Accommodating Appreciation 123.hp.com/setup , Accomplished Appropriate 123.hp.com/setup , Ace Architecure 123.hp.com/setup , Acquiescent Arrangement 123.hp.com/setup , Active Case 123.hp.com/setup , Actual Chart 123.hp.com/setup
how to connect hp envy 7158,how to connect hp officejet 3833,how to connect hp deskjet 2600,how to connect hp envy 5055,how to connect hp officejet pro 6968
hp officejet pro 6978 driver
This is really nice. Thanks for sharing this informative article.
123 HP
hp setup instructions
https://setup-wireless-printer.com/hp-laserjet-pro-p1102w-wireless-driver-mac/
hp 123
Healthcare
123.hp.com/envy5010
123.hp.com/setup 6255
123.hp.com/setup 5052
Great Content here some tips regarding HP Printer, Want to Troubleshoot HP ENVY 5055,It is very simple Uninstall the existing driver and update the matching version. It’s important to cross-check and ensure that the drivers are compatible to use with your model After that, all you have to do is navigate to 123.hp.com/setup 5055 and download the Drivers.
As we all know, Roku ( Roku.com/link ) is a popular online live streaming platform ( go roku.com/hdcp ) used by millions of consumers across the globe. The end user must follow these simple steps to activate the Roku device ( go.roku.com hdcp ) successfull . like ( hdcp roku ) | (hdcp error roku) | (Roku.com/link code ) | (roku.com/link activation code )
Roku Ultra has been quite a revelation in the field of streaming devices that have been released in recent years. The device is superior as it sounds to be. It supports 4K HDR feature and has advanced voice recognition so that you can search for your favorite content by just using your voice. There is also a night listening mode that makes you avoid unnecessary sounds while watching TV. The device is capable of launching applications such as Plex and a headphone jack is also provided for you to listen.
For enquiries regarding the Roku com link activation , check our website.
whenever you try to print any document from my HP printer, some time it won't respond properly,
it might show "printer is offline" error.
the issue is mainly due to driver issue and you have to download the latest drivers from 123.hp.com/setup .
if you still can't fix it visit 123.hp.com and contact support team. these are other link find out your device and follow the steps
123.hp.com/setup 5540
123.hp.com/setup 5660
123.hp.com/setup 7640
123.hp.com/setup 3830
123.hp.com/setup 5255
123.hp.com/setup 7155
hey there are you confused on installing setup for hp printers.
we are providing installation guide and for hp printers visit 123.hp.com and 123.hp.com/setup 123.hp.com/setup 8710
123.hp.com/setup 8720
123.hp.com/setup 8035
123.hp.com/setup 8025
123.hp.com/setup 6968
Epson XP 960
123.hp.com/setup 5055 || 123.hp.com/dj3630hp envy 5052 driver
hp envy 4516 driver, hp envy 4516 driver, hp envy 4516 driver, hp envy 4516 driver, hp envy 4516 driver,
Garmin express update can be performed easily. For Garmin express update, go to the setting of Garmin express, check about and look for updates. Install if any Garmin express update is available. Garmin express update is a simple procedure through which you can update your Garmin express software.
You can easily find cheap flights to Chicago and since many tourists are visiting the City, great deals on airlines ticket to Chicago are readily available with Allegiant Airlines Reservation.
Activate Amazon PrimeVideo.com activate by giving the activation link www.amazon.com in your tv and enjoy amazon popular shows such as movies & web series. If you are still facing problems like- amazon prime video is not working in mytv..then visit the given page.
To resolve and fix Roku connectivity, Roku.com/link not working error, follow the steps below. Selecting the wrong network settings, using the wrong credentials can cause issues
1.At first, you can find what causes Roku connectivity issues
2.Check and verify Roku.com/wireless settings and the credentials used
3.Clear the network cache and the browsing history before loading the page, Roku.com/link
4.Try restarting your device. Use the soft, hard, and factory reset settings
5.It’s good to improve wireless signal using the wireless range extenders
6.Also, avoid connecting multiple devices to the same router
Reach out to our network support @ +1-805-741-2400, if you require any help to begin the troubleshooting
Here are the effortless steps to activate the Direct TV on Roku: Start to power on your Roku device
and TV. On the Roku home page, search the Direct TV app from the Roku channel store. And click the
Add Channel button. Launch the Direct TV app on the home page and log in to the Direct TV account
with valid credentials. Once logged in, an activation code displays. Visit Directvnow.com/roku and
enter the code. Wait till the Direct TV activates, and once Roku activates the app, start the stream theTV shows and movies.
123.hp.com/setup, hp envy photo 7858 setup, hp envy photo 7158 setup, hp envy photo 7155 setup, hp envy photo 7134 setup
Useful information. Thanks for sharing.
Need Epson printer driver assistance? Feel free to reach our website!
Epson printer driver | Epson connect printer setup utility
Post a Comment