Running VBA when Outlook isn't open 
Author Message
 Running VBA when Outlook isn't open

Hello,

Hope one of you Outlook/Exchange gurus can help a relative newbie.

My state gov't agency has email accounts for schools to send in reports as
.mdb files as attachments. These are "resource accounts" (don't know if
that's official MS lingo or not :) whose Inbox and Sent Items folders are
viewable by multiple real people who then deal with the reports.

I have a piece of VBA code, which I run on the newmail event in my own OL
session, that detaches any attachments from an incoming mail and plops them
in a folder (a la Eudora...).

A couple of my users have asked if we can run this code for the resource
account email addresses, as it would save them opening 50 or 60 emails a
day. However, since the bogus accounts don't ever have an Outlook session
open (at least in the normal sense) I can't figure out how I'd activate the
code.

Any ideas would be appreciated! TIA



Sat, 26 Mar 2005 23:29:43 GMT  
 Running VBA when Outlook isn't open
No, VBA is a hosted language, i.e., it must run within a VBA supporting app.

Outlook need not be open, you could set up the code to run from, say, Word
or Excel, which the user may have open a lot more than Outlook.

Another alternative is to create am say, VB 6 app that runs your code via
Automation, i.e., it could silently start and close Outlook if Outlook is
not running.

Sue Mosher's  book has recently been published. I purchased a copy and it
was shipped to me yesterday. Have not yet seen the book.
Book might have the info you need. Book's ISBN is 1555582869.

--
http://www.standards.com/; Programming and support for  Word macros,
including converting from WordBasic to VBA; Technical reviewing; Standards;
Product functional/design/specifications
------------------------------------------------

Quote:
> Hello,

> Hope one of you Outlook/Exchange gurus can help a relative newbie.

> My state gov't agency has email accounts for schools to send in reports as
> .mdb files as attachments. These are "resource accounts" (don't know if
> that's official MS lingo or not :) whose Inbox and Sent Items folders are
> viewable by multiple real people who then deal with the reports.

> I have a piece of VBA code, which I run on the newmail event in my own OL
> session, that detaches any attachments from an incoming mail and plops
them
> in a folder (a la Eudora...).

> A couple of my users have asked if we can run this code for the resource
> account email addresses, as it would save them opening 50 or 60 emails a
> day. However, since the bogus accounts don't ever have an Outlook session
> open (at least in the normal sense) I can't figure out how I'd activate
the
> code.

> Any ideas would be appreciated! TIA



Wed, 30 Mar 2005 21:15:08 GMT  
 
 [ 2 post ] 

 Relevant Pages 

1. Outlook 2K - macros won't work unless VBA environment is opened

2. Problems with Access/Outlook 2K VBA when run using NT's AT command

3. Running a macro that doesn't need outlook to be open

4. Help! by VBA isn't working

5. Out of memory while compiling if form isn't open in developer

6. Making sure word isn't running

7. VBA run-time error 13 on Word '02 (or '97) exit

8. Can't Get Code To Run From VBA Developer's Handbook CD

9. create a shorcut automatically to a VBA macro when you open outlook

10. Outlook VBA - open Excel, read in two fields, send email with these, close excel

11. Cannot open the VBA editor from outlook XP !

12. Opening Web Pages in Outlook using VBA-Help Needed

 

 
Powered by phpBB® Forum Software