outlook-vba

Create button in Outlook 2007 message

I am attempting to create a outlook 2007 message and place a button within the message. I believe this was at one time possible. However I am reading that this may no longer be possible in Outlook 2007. Can anyone confirm this? ...

Is it possible to develop a chat plugin like Gtalk for outlook?

My company uses outlook as the email client and we login to an exchange server. Out address book (not individual contacts) has all the users connected to our company network. Our company dont have IM ;-( .. I am thinking about developing an outlook plugin like Gmail's Gtalk . is this possible(technically)? Or how difficult it is? Will ...

How can I create a script to move the currently active email in the Inbox to another folder in Outlook 2007

I sometimes get emails that I want to keep but to move them into the appropriate folder can be a pain. How can I execute a script that will move (like using C-S-v) the email I'm looking at into a certain folder called "buffer", for instance? I'm using Outlook 2007. thanks. EDIT: there isn't any criteria that can be created to autom...

Problem Getting Outlook 2007 Running VBA Script

I'm trying to get Outlook to save the attachment in a daily email to a folder where I can have a file system watcher ready to parse and analyze the attachment (it's the report of a data integrity checker). I've set up a Rule that is supposed to run a VBA script, but it just doesn't run as far as I can tell. I've verified in VB6 that th...

Outlook VBA: UserForm not responding (can't close, button click event doesn't fire)

I've created a simple UserForm in my Outlook VBA macro - I can make the form visible using this code: VBA.UserForms.Add (PasswordForm.Name) PasswordForm.Show (Modal) ...and the *UserForm_Initialize()* event does in fact fire. But clicking on the "Submit" button on the form does nothing - the SubmitButton_Click() event (which was auto...

Change the selected item in Outlook to next or previous

I rarely use VBA because I hate it. Granted, it's hate from lack of understanding; still it's hate all the same. I wrote code below that is very similar to the accepted answer here. It simply marks emails and meeting responses as read and moves them to the archive. After making a button and key assignment, it has worked very well. The p...

Permanently Delete MailMessage in Outlook with VBA?

Hello all, I am looking for a way to permanently delete a MailMessage from Outlook 2000 with VBA code. I'd like to do this without having to do a second loop to empty the Deleted items. Essentially, I am looking for a code equivalent to the UI method of clicking a message and hitting SHIFT+DELETE. Is there such a thing? TIA! ...

print document programmatically with VBA in Outlook 2007

Hi SO, I'm looking for a way to print a Word document programmatically with VBA in an Outlook macro. I think there may be two ways to accomplish this: 1) Use the Shell to print the document via command line switch with Word. 2) Use Outlook the print the document. Is there a way to do this? I need to be able to specify the printer. T...

ShellExecuteEx in VBA

I understand how to use ShellExecute in VBA (for my Outlook macros) but I'm looking to be able to use ShellExecuteEx to wait for the executed program in my script. Does anyone have an example of how to do this? Currently I have this code: Const SW_SHOW = 1 Const SW_SHOWMAXIMIZED = 3 Public Declare Function ShellExecute _ Lib "she...

Updating List from Outlook VBA via MS Access Offline dBase - VIsta/Office 2007

I have some VBA code, which is attached to a click event of a form, running in MS Outlook 2007. The code is dsigned to update a record in an MS Acces 2007 table, which in turn is linked offline to a SharePoint List. It works fine for the all the list columns except for two of them. These are: a. A List column of Date / Time type ("S...

VBA-Trouble with attaching cells into body of email(Outlook)

Hi, I am using excel 2003 and I am having trouble attaching cells onto the body of an email. I got some of the code off http://www.rondebruin.nl/mail/folder3/mail4.htm but it does not work for me. What happens to me is that a spreadsheet would pop up that has Not Peer Review on it and an error message saying "runtime error '1004' PasteS...

Outlook recurring task trigger macro suppress

I'm using a recurring task to trigger a macro in Outlook, using the Application_Reminder hook. However when the task fires, I want to suppress the Reminder dialog box which normally appears (where there are Dismiss/Snooze etc buttons). Is there a way to do this? Have tried Item.ReminderTime = DateAdd("h", 1, Now) which does work, bu...

Outlook VBA script failing with null reference error, but the objects aren't null

I've got an Outlook VBA script which calls on a custom dll to perform a particular function. The assembly is compiled to be COM visible, but is not strong named due because of a myriad of dependencies, and thus is not registered in the GAC. To work around that, I've simply placed the assembly and it's dependencies in the appropriate Pr...

how to map PR_CONTAINER_CLASS of a folder to an outlook icon using vba

Does anyone know how I can map PR_CONTAINER_CLASS to an outlook icon using vba? This is to display a treeview of all the folders incorporating the correct icons. ...

Outlook 2007 never seems to shut down when instructed to

Currently working on a VBScript to automate some of the dirty PST ingestion work I do, and I've found something problematic after upgrading from Outlook 2003 to 2007. (Had to upgrade to get around a RTF Body issue in OL2003 ..) Even after you instruct Outlook to close the PST store, Log off and then destroy the object (set objNS = Noth...

In Outlook VBA, how can I change the subject so it changes the subject in the Explorer Pane?

When I receive an email, I'm manipulating the subject line so it is more readable and "conversations" generated by a certain auto-emailer actually contain all of the thread. I'm able to change the subject in the email view pane, but the subject remains the same in the explorer pane. How can I force the subject to change in the Explorer...

Move outlook mail from one mailbox inbox to different folder in same mailbox

I have several mailboxes which I can see in my Outlook profile. One of the mailboxes, let's call it "Mailbox - HUR" receives messages constantly. presently one of my team goes into the inbox of this mailbox every day and moves (drag and drop) the messages into a subfolder of the inbox called Archive (we're an imaginative lot!) if the m...

save all email attachments in outlook folder to folder

Hi, I have about 80 emails, all with attachments which I would like to save to a folder on my hard drive. Rather than open each message and go to save attachments, I'm looking for a script that can do this? Anyone know of how this can be done? Thanks, ...

Outlook VBA: add category on open item

Is it possible in Microsoft Outlook VBA to catch the Open event of any mail item that gets opened? I'd like to add a category label to any mail item I have opened, to have an alternative 'unread' option I could script against for something else. I've tried this: Private Sub MailItem_Open() MsgBox "test" End Sub ...

Executing PHP script based on Outlook rule

I am getting daily data dump via e-mail, which is being processed by Access (based on the Outlook rule, VBA is extracting the attachment and running Access procedures, so I get a report). As data dump is getting bigger and bigger, and having in mind that Access is run locally which consumes my resources, I want to set up a PHP/MySQL ser...