make outlook visible

  • Thread starter Thread starter nikolaosk
  • Start date Start date
N

nikolaosk

hi there!!!

i use this chunk of code to create an instance of outlook.

i use vbscript to instantiate it.

i can create it but i can not see it.

-------------------------------------
Set myOlApp = createobject("Outlook.Application")



myolapp.visible=true

-------------------------------

it complains and says that visible property is not supported.


when i write this piece of code though

--------------------------

set app=createobject("internetexplorer.application")

app.visible=true

app.navigate "www.bbc.co.uk"

------------------------

i create an instance of explorer, i can see it and then navigate in th
desired url.


i want to be able to see outlook as well.

please help !!!


thanks a lo
 
The object browser is your friend. Press ALt+F11 to open the VBA environment
in Outlook, then press F2. If you did that, you'd quickly see that the
Outlook Application object has no Visible property. Instead, you must
instantiate either an Explorer (for a folder view) or an Inspector (to show
a particular item) and then display that object.
 
Back
Top