Forum Discussion

ashishnagpal26's avatar
ashishnagpal26
Contributor
6 years ago

New object is opening instead of identifying the existing one in the object browser

Hi Guys , 

 

I am using windows 10 and TC 12.5 version . 

 

In my system I have opened a blank excel sheet and via Test complete I initialize excel via the below code :

 

if(MsExcel != null) return;
MsExcel = Sys["OleObject"]("Excel.Application");
return MsExcel;

 

 

I see in object browser that a new excel is being opened instead of identifying the existing opened Excel . 

 

In windows 7 and TC version 12.20 I don't see this issue . 

 

Can someone help me out here

3 Replies