Vb Script Getobject method is not binding to an already open Outlook application
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Vb Script Getobject method is not binding to an already open Outlook application
Hello Every One,
My requirement is to open outlook with Run as Admin option.After That i am trying to bind outlook with GetObject vb script method.But its not working on outlook though its perfectly binding with excel, word etc.
Any help in this regard.
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi,
Not sure, but considering that Outlook is a part of Office, this might appear to be of some help: https://smartbear-cc.force.com/portal/KbArticleViewer?name=Get-COM-reference-for-a-running-Excel-ins...
/Alex [Community Hero]
____
[Community Heroes] are not employed by SmartBear Software but
are just volunteers who have some experience with the tools by SmartBear Software
and a desire to help others. Posts made by [Community Heroes]
may differ from the official policies of SmartBear Software and should be treated
as the own private opinion of their authors and under no circumstances as an
official answer from SmartBear Software.
The [Community Hero] signature is used with permission by SmartBear Software.
https://community.smartbear.com/t5/custom/page/page-id/hall-of-fame
================================
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi,
I have red the provided article and came to know that getobject function does not bind to the existing excel application.
I don't know the exact internals of how COM works but Getobject can get the existing excel reference.
Following steps works in VB script.
Set Obj=CreateObject("Excel.Application") will give new excel instance.
Set Obj=GetObject(,"Excel.Application") will give existing excel instance.I.e Open excel application and run this statement.This statement binds to the opened excel application.
