Forum Discussion

Nethra30's avatar
Nethra30
Occasional Contributor
9 years ago

Right Click on a cell in excel and perform Operation from List

Hi,

          I have got object of excel which is already opened and selected required sheet, and have selected cell. Now how can select a cell and Right click on that particular cell to perform certain operation from testcomplete ?

 

This is my code.

Set Excel = GetObject("Excel Name")
Set objSheet = Excel.Worksheets("Sheet Name")
BuiltIn.Delay 1250
Set objRange = objSheet.Range("K5")
objRange.Select

 

Please help me to right click on a cell. I used Sys.Keys(![f10] but keyboard input will not get parameters i want, only mouse click will help me

 

regards,

Nethra

3 Replies