![]() |
If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below. |
|
|
Thread Tools | Search this Thread | Display Modes |
#1
|
|||
|
|||
![]()
Good day to everyone. My boss in the office uses 2 email accounts in his pc (1 exchange server w/o OWA and 1 gmail). He asked me to make it so that he would be able to send emails using gmail to internal email in our exchange server when he's abroad. I found vba to be the answer but i'm currently stuck with a synching problem.
The way I set it up is I send a mail using gmail to internal emails BUT I have it send a BCC to myself. that way when outlook gets the email my vba script kicks in and resends everything as it is to our internal emails using the other exchange account in his outlook. This works wonderfully well but I am always stuck in (Saving Synchronization log) everytime I start to get the email and the only way I can get it is if I close outlook and open it again. Each time I send an email i'll have to reopen outlook and that would be troublesome especially for my boss. Here's the code I have used: Sub MyRule(Item As Outlook.MailItem) Dim olkMsg As Outlook.MailItem Set olkMsg = Item.ReplyAll With olkMsg .SendUsingAccount = Application.Session.Accounts(1) .To = Item.To .Subject = Item.Subject .Display .Send End With Set olkMsg = Nothing End Sub Any input is welcome. Thank you in advance guys |
Ads |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
VBA: Outlook appointement macro problem | masani paresh[_2_] | Outlook and VBA | 5 | February 9th 09 06:58 PM |
Problem using Outlook Redemption VBA code | [email protected] | Outlook and VBA | 8 | June 7th 07 05:00 AM |
Palm Synching-can U stop/filter a calndr event from synching to Pa | Harriet | Outlook - Calandaring | 1 | October 5th 06 04:24 AM |
Problem running a VBA script from an Outlook rule | Olivier Langlois | Add-ins for Outlook | 5 | March 16th 06 10:03 PM |
Problem hot synching Outlook 2002 with Palm Pilot | Musawwir Spiegel | Outlook - General Queries | 2 | January 28th 06 04:13 PM |