Yes, you can place a shortcut to the macro on your toolbar....
Go to 'Tools', 'Customize' (or right-click on the toolbar & choose 'Customize').
Click the 'Command's' tab if it's not already selected. Click 'Macros' in the
left column, then in the right column select & drag the macro you want to the
toolbar. (If the macro list is blank, ensure that macros have been enabled for
that session - more about security below).
To use my view attachments macro, just select one or multiple emails (you do not
have to open them first). Picture attachments will show up in the new browser
window, other attachments will just show as a red 'X' .
I put more details in some of my earlier posts:
- It's safe, because it won't run any executables or other attachments.
- Put a shortcut to the macro on your toolbar for easy access.
- You can select multiple emails & display all the attachments at once.
- It copies the files to 'c:\attachments_outlook' (creates the directory
if necessary - you can modify the path if you wish).
- It then deletes the specific files that were copied (no others).
Regarding macro security levels, I believe Outlook defaults to the 'High'
security level (under 'Tools', 'Macro', 'Security'). Macros like this will not
run under that level, so if you were able to run it you must have figured out
how to set the security level to 'Medium' or lower ('Low' is very unsafe & not a
good idea). 'Medium' will prompt you the first time you try to access a macro
during every session. A better way is to create a personal digital signature &
sign your VBA project. Then you can set your security level back to 'High' &
you won't be prompted anymore either. Here's instructions on how to do that (in
Outlook 2000 - others are similar):
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnout2k/html/oldigitalsignature.asp
Going back to customizing the toolbar.... While the 'Customize' dialog is open,
you can drag & drop toolbar items to rearrage them. Also, to remove an item,
drag it from the toolbar & drop it anywhere in the 'Customize' dialog box.
Refer to help on how to create separtor bars, etc.
Once you get all this setup, plese let me know how the macro works. Many people
seem to be looking for this kind of functionality, but I've haven't received
much feedback.
Patrick