download messages only from one account

  • Thread starter Thread starter Santista
  • Start date Start date
S

Santista

Hi,

I have eleven e-mail accounts in OE 2003.
One of them is the most important of all and frequently I have to download
messages only from that one.

How can I create a button to download messages from that account?

Thanks
 
I'm not aware of an Outlook Express 2003. Are you running Microsoft Outlook
2003 or Outlook Express 6?

/neo

ps - if you look under the tools menu of both programs, check to see if you
have a send/receive and then just the name of the account.
 
Hi Neo,

I'm running Outlook 2003 (not OE 2003 as I wrote),
ps - if you look under the tools menu of both programs, check to see if you
have a send/receive and then just the name of the account.

Thanks for the suggestion, but I need:
1) <receive> (not send/receive) from only that account, and
2) avoid to choose every time in that menu, from which of the eleven accounts.

Santista
 
Then define/create a custom send/receive group(s) and/or modify the default
send/receive group. (Ctrl + Alt + S)
 
Thanks again, Neo.

It works.

Just one more question: do you think it is possible to create a button (icon)
for this group?
(when O2003 is under "Customize", I cannot drag this menu line to the Toolbar)

in message ...
 
You would have to create a macro to trigger the send/receive group. Once
that is done, then you create a button on the toolbar that triggers the
macro. Outlook 2003 online help might help you create the macro. (Look
under the programming/vba help for SyncObject)

If stuck after reviewing help, post back for additional help.
 
Sorry Neo,

I tried using VBA several times but without success (nobody is perfect).

I can create macros in Word, Excel...
Why cannot Outlook do it in the same way?

I would appreciate very much if you can help me.

Santista

in message:...
 
Not a problem. From the main Outlook window press ALT + f8. Type in a macro
name (e.g. CheckAccount) and select create. Paste in the code below. If
you know the name of the Send/Receive group that you need to trigger, the
code can be modified just to trigger it and not all send/receive groups like
this one. I'll post a followup to this one and give you an idea if I had a
Send/Receive group Named "Important".


Sub CheckAccount()
Dim nsp As Outlook.NameSpace
Dim sycs As Outlook.SyncObjects
Dim syc As Outlook.SyncObject
Dim i As Integer
Dim strPrompt As Integer
Set nsp = Application.GetNamespace("MAPI")
Set sycs = nsp.SyncObjects
For i = 1 To sycs.Count
Set syc = sycs.Item(i)
strPrompt = MsgBox("Do you wish to synchronize " & syc.Name & "?",
vbYesNo)
If strPrompt = vbYes Then
syc.Start
End If
Next
End Sub
 
This is what the code would like for a send/receive group named "Important".

Sub CheckAccount()
Dim nsp As Outlook.NameSpace
Dim sycs As Outlook.SyncObjects
Dim syc As Outlook.SyncObject
Dim i As Integer
Dim strPrompt As Integer
Set nsp = Application.GetNamespace("MAPI")
Set sycs = nsp.SyncObjects
Set syc = sycs.Item("Important")
syc.Start
End Sub
 
Sorry Neo,

I did what you suggested.

When I try to run this (and any other) macro, Outlook shows a dialog box saying
that macros are disabled.

I search Help how enabling macros in Outlook, but I did not find.

Please...

Santista



in message
....
 
Try Tools | Macro | Security. Set to Low (no prompt) or Medium (will be
prompted everytime u start outlook).
 
Neo, thank you very much,

The macro, assigned to a Toolbar button, is working fine.

Santista

in message ...
 
Back
Top