Thanks, Diane, I haven't been able to come back to this site for a couple of days, but I'll give this a go.
Will give you feedback as soon as poss but thanks again.
m
Hi,
I'm trying to move a sent email from the sent box to an other shared mailbox subfolder.
I can't use VBA as macros are disabled and am finding it difficult to change the GetFolderPath() function to work in VBScript.
Below is how I call it but I'm having trouble converting the VBA code into...
Sadly no... just dim the variable strFilePath, then in yr code say where it is strFilePath = ".....\...\...exe" and then on the next line use the code I sent before... so
dim strFilePath as string
strFilePath = "C:\Users\" & Environ("username") & "\Documents\BlarBlarBar.exe"
VBA.Shell...
You might try using Explorer to do it for you... using the file path (strFilePath)
VBA.Shell "Explorer.exe " & Chr(34) & strFilePath & Chr(34), vbNormalFocus ' Use Windows Explorer to launch the file.
Hi,
I'm trying to move a sent email from the sent box to an other shared mailbox subfolder.
I can't use VBA as macros are disabled and am finding it difficult to change the GetFolderPath() function to work in VBScript.
Below is how I call it but I'm having trouble converting the VBA code into...
Thanks for all the help, Michael and thanks for the other ideas for moving etc.
In point of fact, though, just removing it is fine but good to know all the other ideas.
Mark
You're right, the .Move or .Delete does raise an error - I should've made that clearer.
I just tried your idea of .Remove which gave this error: "Object doesn't support this property or method"... although I wrote the code as oSharedInbox.Items(intI).Remove but I don't see any difference in...
Something like this..
For intI = oSharedInbox.Items.count To 1 Step -1
If TypeOf oSharedInbox.Items(intI) Is MailItem Then
Set oMail = oSharedInbox.Items(intI)
With oMail
If .MessageClass = "IPM.Outlook.Recall" Then
.Move oManualInbox...
Hi,
I have a Shared mailbox that is programmatically worked on to move messages to other folders depending on the senders as well as send out emails in reply.
Occasionally, a recipient of an email from the shared mailbox will email back and then Recall that message which then blocks up the email...
Thanks for that, Diane,
however the sub directory to save the email to is contained within the email... I pick that up earlier and then use the GetFolderPath () function found here http://www.slipstick.com/developer/working-vba-nondefault-outlook-folders/ to then Move the email to the folder...
Hi
I'm using Outlook 2013 and need to move emails into an archive subdirectory which is fine as per code listed here, but if that subdirectory doesn't exist then my code falls over.
My account has all permissions necessary but in this snippet from code found on this site:
FoldersArray =...
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.