You can try this syntax ThisOutlookSession.Forward
If that doesn´t work either, it´s probably blocked for security reasons. An alternative would be to move the method to a module (not a class module).
You could solve that somewhat easily with Outlook VBA only if Adobe directly calls Outlook to create the email. I doubt this is the case. More likely is that Adobe sends the call to create the email to an underlying mechanism that creates the email no matter which email app you´re using. In this...
Matt, look at the code for all objects that belong to Excel and not to Outlook like Application or Sheets. For instance, when running in Outlook, Application points to Outlook instead of Excel. And Outlook´s Application object doesn´t know a ScreenUpdating property. You need to use variables to...
Phil, I`m myself behind VBOffice. If you only need to sync the master category list (mcl) once, you can use the mentioned addin, which is free for 30 days.
The described process of importing the *.reg file is limited to only 10 categories during the free trial period; a limitation that was...
Since the Upgrade to Color Categories option can only find categories assigned to items in the pst file it maybe doesn´t restore all the master category list.
Category-Manager can import the all the categories from the Registry . Open the registry editor, and navigate to...
In order to receive an event you need to declare a variable for the object with the With Events statement:
Private WithEvents Inbox As Outlook.Folder
Private Sub Application_Startup()
Set Inbox = Application.Session.GetDefaultFolder(olFolderInbox)
End Sub
Now you can select the variable...
"obj" is a variable you´d used with the For Each loop. It is not a property of Item(i). The loop will be faster if you use variables so that every object has to be referenced as less as possible:
dim items as outlook.items
set items=deletedfolder.items
for i....
set obj=items(i)
if...
Sort the Items collection descending before the loop starts
deletedfolder.items.sort "[Receivedtime]", true
Then use a For i=1 to 50 loop instead of For Each.
As Diane mentioned, you´re mixing different code. Use ItemAdd, if you want to handle on item added to a folder. Use the loop through selected items if you want to handle items selected by the user.
The For Each loop already loops through the items, giving you a ref on each selected item. Why do...
For Outlook 2016 using a For i= loop is faster than For Each. I haven´t tested that in earlier versions. And for Outlook 2010 and older (not sure about 2013) using the RDOFolder object from Dmitry´s Redemption is way faster than the OOM.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.