Click here to Skip to main content
16,007,858 members
Home / Discussions / Visual Basic
   

Visual Basic

 
QuestionRich Text Box Pin
Fred Andres16-Jan-12 10:44
Fred Andres16-Jan-12 10:44 
AnswerRe: Rich Text Box Pin
Eddy Vluggen16-Jan-12 11:57
professionalEddy Vluggen16-Jan-12 11:57 
GeneralRe: Rich Text Box Pin
Fred Andres17-Jan-12 7:35
Fred Andres17-Jan-12 7:35 
GeneralRe: Rich Text Box Pin
Eddy Vluggen17-Jan-12 8:26
professionalEddy Vluggen17-Jan-12 8:26 
AnswerRe: Rich Text Box Pin
Dave Kreskowiak17-Jan-12 2:11
mveDave Kreskowiak17-Jan-12 2:11 
GeneralRe: Rich Text Box Pin
Fred Andres17-Jan-12 7:35
Fred Andres17-Jan-12 7:35 
AnswerRe: Rich Text Box Pin
Shameel19-Jan-12 19:03
professionalShameel19-Jan-12 19:03 
QuestionVB Scripting for OUTLOOK 2003 Pin
Yogesh M kumar14-Jan-12 19:09
Yogesh M kumar14-Jan-12 19:09 
XML
Hi,
I need help in writing a script for outlook 2003.

This is what i want the script to do for me..

1.) I want the script to run outlook and select a mentioned profile,
2.) Then the script should be able to minimize the outlook window,
3.) After that I need to do send & receive,
4.) And in the last, script should be able to close the outlook properly.

Can anyone help..?

Presently I am using a scripts to run outlook do send and recieve and then close it...
Its working fine the only problem is I am using sendkey(F9) to do send and receive and it only works if outlook window is active.
And plus I want add one more thing, I should also be able to minimize the outlook with this script so that it wont bother other’s when they logon to the computer.


My prsent Script is



<package>
<job id="vbs">
<script language="VBScript">
set WshShell = WScript.CreateObject("WScript.Shell")

WshShell.Run "outlook /profile registration"
WScript.Sleep 20000

WshShell.AppActivate "Outlook"
WScript.Sleep 1000

WshShell.SendKeys "{F9}"
WScript.Sleep 28000

Dim oOL 'As Outlook.Application
Set oOL = GetObject(, "Outlook.Application")
If oOL Is Nothing Then
'no need to do anything, Outlook is not running
Else
'Outlook running
oOL.Session.Logoff
oOL.Quit
End If
Set oOL = Nothing

</script>
</job>
</package>

QuestionContains Method returns false if string and parameter are equal? Pin
Dominick Marciano14-Jan-12 16:15
professionalDominick Marciano14-Jan-12 16:15 
AnswerRe: Contains Method returns false if string and parameter are equal? Pin
Dave Kreskowiak15-Jan-12 3:46
mveDave Kreskowiak15-Jan-12 3:46 
GeneralRe: Contains Method returns false if string and parameter are equal? Pin
Shameel19-Jan-12 19:07
professionalShameel19-Jan-12 19:07 
QuestionDatabound combobox filtering issue Pin
Stefano Leoni13-Jan-12 12:29
Stefano Leoni13-Jan-12 12:29 
AnswerRe: Databound combobox filtering issue Pin
Stefano Leoni17-Jan-12 3:17
Stefano Leoni17-Jan-12 3:17 
Questiondrop down list selected value Pin
Seema Bawa13-Jan-12 11:11
Seema Bawa13-Jan-12 11:11 
QuestionRe: drop down list selected value Pin
Richard MacCutchan13-Jan-12 22:31
mveRichard MacCutchan13-Jan-12 22:31 
AnswerRe: drop down list selected value Pin
sri08018818-Jan-12 23:44
sri08018818-Jan-12 23:44 
QuestionOpinions needed on "shared" keyword Pin
nlarson1112-Jan-12 8:05
nlarson1112-Jan-12 8:05 
AnswerRe: Opinions needed on "shared" keyword Pin
Luc Pattyn12-Jan-12 8:16
sitebuilderLuc Pattyn12-Jan-12 8:16 
GeneralRe: Opinions needed on "shared" keyword Pin
nlarson1112-Jan-12 8:21
nlarson1112-Jan-12 8:21 
GeneralRe: Opinions needed on "shared" keyword Pin
Dave Kreskowiak12-Jan-12 8:32
mveDave Kreskowiak12-Jan-12 8:32 
GeneralRe: Opinions needed on "shared" keyword Pin
nlarson1112-Jan-12 8:38
nlarson1112-Jan-12 8:38 
GeneralRe: Opinions needed on "shared" keyword Pin
Dave Kreskowiak12-Jan-12 9:38
mveDave Kreskowiak12-Jan-12 9:38 
GeneralRe: Opinions needed on "shared" keyword Pin
Luc Pattyn12-Jan-12 8:34
sitebuilderLuc Pattyn12-Jan-12 8:34 
GeneralRe: Opinions needed on "shared" keyword Pin
nlarson1112-Jan-12 8:51
nlarson1112-Jan-12 8:51 
AnswerRe: Opinions needed on "shared" keyword Pin
Eddy Vluggen12-Jan-12 10:40
professionalEddy Vluggen12-Jan-12 10:40 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.