Code:
Sub Test()
Dim oApp
Dim oNS
Dim oMsg
Set oApp = New Outlook.Application
Set oNS = oApp.GetNamespace("MAPI")
Set oFolder = oApp.ActiveExplorer.CurrentFolder
Set myDestFolder = oFolder.Folders("Test")
Set oFolder = oApp.ActiveExplorer.CurrentFolder
For Each oMsg In oFolder.Items
With oMsg
oMsg.Move myDestFolder
End With
Next
End Sub
This code should move all messages from my inbox to a sub folder of my indox named 'Test'... But it only moves 3 or 2 at a time...
Does anyone know why it doesn't work ??
Thanx,
Lon