Outlook 2003 - Set Virables via command line

Status
Not open for further replies.
L

Louis Berniquez

I'm trying to create a VBA script that will be executed via the command line (I'm integrating into another application, it's my only option)

What I would like to do is create a VBA script that will have it's variables set via the command line, but cannot find the code. Is it possible?

more or less something along the lines of :

"C:\Program Files\Microsoft Office\Office\Outlook.exe" /c ipm.note /altvba otmfilename -v1=string or ?v1=string

Is something like this possible by defining it in the subroutines?

eg. Sub CreateOutlookTask(v1 as String)

The main idea is to pull variables from my other application in the command line, define the settings and have the VBA auto-populate the information to/from and use an HTML template inserted as the body.

Any ideas, is it even possible?

Of course, could enter manually, but am trying to limit user interface to a minimum.

Help

Dr. Dotnetsky's Cool .Net Tips and Tricks No. 26

http://www.eggheadcafe.com/tutorial...be30-cde5d852348d/dr-dotnetskys-cool-net.aspx
 
I don't think it possible with a command line. You could have a public

method in the Application object, and call that from outside:

private m_v$

Public Sub Whatever(v$)

m_v=v

End Sub

And call it this way:

Dim obj as Object

Set obj=CreateObject("Outlook.Application")

obj.Whatever "hallo"

Best regards

Michael Bauer

Am Sat, 27 Feb 2010 06:02:30 -0800 schrieb Louis Berniquez:


> I'm trying to create a VBA script that will be executed via the command


line (I'm integrating into another application, it's my only option)

> What I would like to do is create a VBA script that will have it's


variables set via the command line, but cannot find the code. Is it

possible?

> more or less something along the lines of :

> "C:\Program Files\Microsoft Office\Office\Outlook.exe" /c ipm.note /altvba


otmfilename -v1=string or ?v1=string

> Is something like this possible by defining it in the subroutines?

> eg. Sub CreateOutlookTask(v1 as String)

> The main idea is to pull variables from my other application in the


command line, define the settings and have the VBA auto-populate the

information to/from and use an HTML template inserted as the body.

> Any ideas, is it even possible?

> Of course, could enter manually, but am trying to limit user interface to


a minimum.

> Help

> Dr. Dotnetsky's Cool .Net Tips and Tricks No. 26
>


http://www.eggheadcafe.com/tutorial...be30-cde5d852348d/dr-dotnetskys-cool-net.aspx
 
Status
Not open for further replies.
Similar threads
Thread starter Title Forum Replies Date
glnz How set up new IMAP on Outlook-Office 365 and merge in pst from Outlook 2003 for same two email accounts? Using Outlook 5
J How to set a flag to follow up using VBA for outlook 2003 Using Outlook 10
B Outlook 2003: Meeting Organizer will be set as always free or busy status Using Outlook 1
B Notice to user of appt. set by person with permission to edit (Outlook 2003) Using Outlook 7
D Wishlist How to use 'app password' in Outlook 2003 after Google pulled plug on "less secure apps" Using Outlook 2
J Outlook 2003 .pst Will Not Restore Completely to Outlook 2019 Using Outlook 5
D Outlook 2003 Mail Fails Using Outlook 1
D Wrong email address in Outlook 2003 "From" tab in new outgoing emails Using Outlook 4
V Outlook 2003 and Windows 11 Using Outlook 4
glnz Moving from Outlook 2003 to MS365 Outlook - need basics Using Outlook 4
I Outlook 2003 shows html code when To: field is empty Using Outlook 7
B Outlook 2003 email sending & receiving suddenly stopped working Using Outlook 3
H Outlook 2003 find by "has attachment" Using Outlook 1
P Import Categories from Outlook 2003 Using Outlook 8
V Outlook 2003 problem with Windows 10 Creators Update 1709 Using Outlook 0
M Outlook 2003 pictures - some visible, some not Using Outlook 0
S Outlook 2003 to Outlook 2013 pst file Using Outlook 5
O Memory Leak in Outlook 2003 Using Outlook 3
W Changing looks of emails in Outlook 2003 Using Outlook 0
O Outlook 2003 can't send, but settings seem OK Using Outlook 1
P URL Hyperlink not working correctly in Outlook 2003 Using Outlook 10
O Outlook 2003 can't open contacts. Using Outlook 2
O Promoting Outlook 2003 User Templates Using Outlook 1
O W-a-a-y too many PSTs (Outlook 2003) Using Outlook 0
J Outlook 2003-2010 PST Field Editor Using Outlook 1
P Outlook 2003 - Do I need a new profile? Using Outlook 2
E Want to Import Outlook 2003 pst files to later version Using Outlook 6
A error message outlook 2003 Using Outlook 1
B Seeking advice now Outlook 2003 is unsupported by Exchange Using Outlook 4
O Change Debit to Credit in Outlook 2003? Using Outlook 1
J problems downloading POP3 emails to Outlook 2003 Using Outlook 1
G Outlook 2003 VBA Won't Run In Outlook 2010 Outlook VBA and Custom Forms 4
P Outlook 2003 - possible to recreate corrupt account? Using Outlook 3
Calvyn Outlook 2003 cannot import .vcs subject Using Outlook 1
T Query about one aspect of migrating .pst files from Outlook 2003 to Outlook 2013 Using Outlook 5
C Outlook 2003 contacts Using Outlook 1
G Configuring Outlook 2003 for Gmail with both pop3 & imap4 accounts Using Outlook 1
M HELP--Extract Data from 2003 outlook transfer to excel spreadsheet Using Outlook 1
V Outlook 2003 editing problem Using Outlook 4
X Outlook 2003 not sending all of the new email message Using Outlook 1
2 How to use outlook 2003 calendar in always offline mode Using Outlook 0
G Outlook 2003 I need to move email to folder based on subject, using wild card Using Outlook 0
G outlook 2013 - Open In Outlook 2003 Using Outlook 1
A Exchange 2003 Outlook 2010 64 Bit- AutoDiscover Connection Err - Certificate Exchange Server Administration 9
T Use Outlook 2003 with Office 2013 Using Outlook 1
D Outlook 2003 contact folder opend in scrolled down position Using Outlook 2
O Need advice ASAP! Outlook 2003. Using Outlook 1
H Custom Contact form not working in Outlook 2003 Using Outlook 3
O Outlook 2003 forms problem Using Outlook 3
O Duplicate folders in Outlook 2003 Using Outlook 3

Similar threads

Back
Top