Hi all,
here is the code of my VBA in outlook,
as i want to put it in the task scheduler to run it on a fixed time daily.
but how can it be done?
Many thanks all.Please Login or Register to view this content.
Hi all,
here is the code of my VBA in outlook,
as i want to put it in the task scheduler to run it on a fixed time daily.
but how can it be done?
Many thanks all.Please Login or Register to view this content.
VBS is very similar to VBA, and VBA legacy in any version, for that matter. for instance, the MGSBOX is the same statement between the two. you biggest hurdle, more than likely, will be to try and find out if the outlook object references in your code, like the MAPI line, can be done in VBS. more than likely it can.
however, why do you need a shell language? why not just open outlook and run your code by way of a TS timer? that's what you want to do anyway, right? some IT departments actually block VBS files from running because it is looked at as malicious. you can open literally anything with the TS in windows, if I'm not mistaken.
Many thanks for your reply
Yes you are right, my purpose is to run the ooutlook macro daily at a specific time.
as I have some excel macro and it is easy to convert them into vbs for a task scheduler to run. therefore it become my first thought to convert the outlook macro to a vbs file.
how can I run the outlook macro in task scheduler without using vbs?
I don't run tasks often. can't be much help there.
https://www.google.com/search?q=outl...task+scheduler
looks like many have already done it, and can assist you.
@a166769344
I am sure that someone will be able to assist you - please be patient. I have closed your duplicate thread - please don't open duplicates in future.
Ali
Enthusiastic self-taught user of MS Excel who's always learning!
Don't forget to say "thank you" in your thread to anyone who has offered you help.
You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.
Forum Rules (updated August 2023): please read them here.
A working file would be of great assistance, as per the the yellow bannner above. Until then, the way to do this is associate a code in the workbook_open event that calls your code. Once your file is then loaded into the task scheduler to run at a specific time in the day, the file will open and trigger the email code. Here is a link to a similarly solved case. https://www.excelforum.com/excel-pro...n-30-days.html
Last edited by maniacb; 08-28-2020 at 02:58 PM.
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks