Script needed for replying to email address in body of receiving email

Status
Not open for further replies.
Copy and paste it into notepad and save as... change the extension to vbs.

Are you having any weirdness when you post? My replies are all getting the reposted. I'm not sure if its a problem in my browser or with the forum software.
 
Copy and paste it into notepad and save as... change the extension to vbs.

Are you having any weirdness when you post? My replies are all getting the reposted. I'm not sure if its a problem in my browser or with the forum software.

No weirdness here......

Thank you for the directions.

What directory do I place the script in for Outlook to find it?
 
It's a vbs script so it can go anywhere - it's not a VBA macro and outlook won't "find it" - you need to double click to run it.
 
It's a vbs script so it can go anywhere - it's not a VBA macro and outlook won't "find it" - you need to double click to run it.

I made the changes and the script has been working fine since last time we chatted.....

However... I had made the changes to the previous script, which is not working.

Once again I will remind you that I am a novice.

But it appears to me that I can't have 2 scripts loaded at the same time.

That was why I thought the script files had to be loaded in a certain directory/folder
 
Damn software keeps double posting on me. :( I've been thinking about moving to new forum software and this might just be the thing that makes me actually do it. :(
 
I'll have to review the thread and refresh my memory, i was looking at this:

Copy and paste it into notepad and save as... change the extension to vbs.

when i answered. If its a VBS it's outside of outlook.

I somehow missed your last message and was reviewing some stats and saw this thread has like 255,000 views and looked at it to see what was so interesting. :) Most threads are under 1000, a few are in the low 1000's, some older ones are in the 5 digits, but i think this is the only one with 6 digits.
 
Wow... 6 digits

You would think some of them would have left a cheerio :)

I understand the - edit, cut and paste and save - then change from txt to vbs.

But do I just leave that file on the desktop???

Or - does it need to be in a certain directory for outlook and VB to read it??
 
I think the next most popular post is like 40,000 and its like 2 yrs old, so I'm not sure where the extra 200,000+ came from. It really is a lot.

Anyway, you can move the vbs anywhere. It doesn't matter where it is, it will find outlook when you run it. :)
 
So excuse my ignorance - but when I open outlook, does it crawl my hard drive for all the vbs files?
 
Picture3.jpgit has opened as a project, but I cant get a 2nd project open.
 
No. It doesn't look for vbs files (they are actual run by the scripting host engine in windows) and it only loads the VbaProject.OTM (Outlook VB project file) in %appdata%\Microsoft\outlook.
 
it has opened as a project, but I cant get a 2nd project open.

Right, outlook can only open one Project file at a time. However, you can add more modules or put multiple macros in the ThisOutlooksession.
 
Re Modules... I understand... and loaded a second module.

But now..... something has happened.....

What do I do when my select script box is empty ?

I'm editing my rules and alerts thru Outlook....... and when I go to select my script...... the script box is empty.
 
where is the script? If it's in a module, try putting it in thisoutlook session? It should work in either a module or thisoutlooksession, but i had one that was only visible in thisoutlooksession.




what is the name of the script? the name line needs to be formatted like this, run a scripts only see subs with item as mailitem (and in newer versions, as appointment item)




Sub SendNew(Item As Outlook.MailItem)
 
Screen View.jpg

Here is a screen view

And here is the view of outlook , while I was trying to edit an existing rule that was working... it appears the Select script box is empty

ScreenView2.jpg
 
That looks like two subs with the same name? That will confuse outlook - either delete or rename one. If it still doesn't work, copy and paste it in ThisOutlookSession.
 
ok... how do I go about renaming one ( VB Novice )
 
You just type a new name :)

If both are called Sub SendNew(Item As Outlook.MailItem)

you change one to Sub SendNew1(Item As Outlook.MailItem) or Sub SendNewOld(Item As Outlook.MailItem)

But, if both are identical, you only need delete. Delete one and see if it is visible in the rules dialog, if not, cut and paste it into ThisOutlookSession.
 
Ok, I got them both back ( thank you )

Now - lets see if they work.

Thanks

Diane
 
Think positive - they WILL work. :)
 
Status
Not open for further replies.
Similar threads
Thread starter Title Forum Replies Date
J Email Parsing VBA Script for Outlook - NEEDED Outlook VBA and Custom Forms 7
E New Macro/Script needed Using Outlook 5
R Script for simplifying spam control Outlook VBA and Custom Forms 8
J Outlook Rules VBA Run a Script - Multiple Rules Outlook VBA and Custom Forms 0
N Outlook 2021 'Run Script" Rules? Outlook VBA and Custom Forms 4
K Run a script rule to auto 'send again' on undeliverable emails? Outlook VBA and Custom Forms 1
W Designer Form 2013 and Script ? how ? Outlook VBA and Custom Forms 1
G print attachment straight away; working script edit not working Outlook VBA and Custom Forms 0
G Save attachment run a script rule Outlook VBA and Custom Forms 0
FryW Need help modifying a VBA script for in coming emails to auto set custom reminder time Outlook VBA and Custom Forms 0
G Script does not exist Outlook VBA and Custom Forms 0
G Trigger script without restaring outlook Outlook VBA and Custom Forms 7
A VBA Script - Print Date between first email in Category X and last email in Category Y Outlook VBA and Custom Forms 3
L Modifying VBA script to delay running macro Outlook VBA and Custom Forms 3
L Need help modifying a VBA script for emails stuck in Outbox Outlook VBA and Custom Forms 6
L VB script only runs manually Outlook VBA and Custom Forms 5
E Having some trouble with a run-a-script rule (moving mail based on file type) Outlook VBA and Custom Forms 5
D.Moore VB script to Digitaly Sign newly created outlook message Outlook VBA and Custom Forms 2
Aussie Rules Run a Script on an Incoming Email OK and then the Email reverts Outlook VBA and Custom Forms 0
D.Moore VBA script fail after Office 365 update Using Outlook 8
M Outlook 2013 Script Assistance - Save Opened Link with Subject Added Outlook VBA and Custom Forms 1
F Script for zip file attachment Outlook VBA and Custom Forms 1
S Change VBA script to send HTML email instead of text Outlook VBA and Custom Forms 3
Y Outlook 2013 Run A Script Outlook VBA and Custom Forms 4
Z Script to set account? Using Outlook 0
dweller Outlook 2010 Rule Ignores VBA Script Outlook VBA and Custom Forms 2
N VBA Script to Open highlighted e-mail and Edit Message Outlook VBA and Custom Forms 5
B Outlook rule run a Script doesn't work Outlook VBA and Custom Forms 1
J Calling a Public sub-routine from the script editor via VB script Outlook VBA and Custom Forms 4
K Outlook Archive to PST Files by Date Range VBA Script? Outlook VBA and Custom Forms 1
Peter H Williams Enable script containing VBA Outlook VBA and Custom Forms 12
H VB script in outlook form doesn't work anymore Outlook VBA and Custom Forms 2
A Script to fetch data from mails in restricted collection and sending them to excel Using Outlook 1
B Wanting to run a script that will filter any body that has a russian link in it. Outlook VBA and Custom Forms 5
Bri the Tech Guy Registry Tweak to make "Run a Script" Action Available Outlook VBA and Custom Forms 2
V VB script code to save a specific email attachment from a given email Outlook VBA and Custom Forms 14
Bri the Tech Guy Run Script rule not running for newly arriving messages Outlook VBA and Custom Forms 25
M Subject Line Automation - Trigger Script Delayed Outlook VBA and Custom Forms 2
Q Script to create a pst file for Archiving Using Outlook 1
Vijay Error in rule- Run a script Using Outlook 1
R VBA Script Quick Parts Using Outlook 1
Vijay Run script doesn't work in outlook Using Outlook 1
Q VBA Script to move item in secondary mailbox Outlook VBA and Custom Forms 2
Diane Poremsky Run a Script Rule: Send a New Message when a Message Arrives Using Outlook 2
F Avoid sending duplicate using Outlook script Outlook VBA and Custom Forms 2
oliv- How to Run a Script IN AN ADDIN with Outlook's Rules and Alerts Outlook VBA and Custom Forms 2
L Run a Script Rule doesn't work Using Outlook 5
N Outlook script to forward emails based on senders' address Outlook VBA and Custom Forms 2
S using script rule to save attachments on arrival Outlook 2010 Outlook VBA and Custom Forms 9
X Outlook script to run excel data Outlook VBA and Custom Forms 1

Similar threads

Back
Top