Hi,
I am trying to write a vbscript that opens Outlook on my PC, creates a message and then sends it. For some reason although the Outlook process is open I can't see Outlook on my screen.
The script also generates a word document and with this I was able to use the code:
Set objWord = CreateObject("Word.Application")
objWord.Visible = True
However when I try
Set objOutlook = CreateObject("Outlook.Application")
objOutlook.Visible = True
I get the error:
Object doesn't support this property or method: 'objOutlook.Visible'
I am trying to write a vbscript that opens Outlook on my PC, creates a message and then sends it. For some reason although the Outlook process is open I can't see Outlook on my screen.
The script also generates a word document and with this I was able to use the code:
Set objWord = CreateObject("Word.Application")
objWord.Visible = True
However when I try
Set objOutlook = CreateObject("Outlook.Application")
objOutlook.Visible = True
I get the error:
Object doesn't support this property or method: 'objOutlook.Visible'