Hi Mike
what i wanted to do is just call cmdbutton_click()
By the way i achieved finally with following code.
oShell = Createobject("wscript.shell")
oShell.AppActivate("app2") && activate the app 2
oShell.Sendkeys("ALT+R") && this is hot key cmdbutton
this doing what i wanted as long as cmdbutton has focus.
what i mean there is a editbox on the app i am call and if i keep the cursor there then abv does not work!!
any ideas on this please
many thanks
Nitin