Hi everybody...I hope this is a easy one.

Basically I want a particular control (textbox) to gain focus when a commanfd button is clicked as follows:

txtDemo(3).Enabled = True
txtDemo(3).SetFocus
SendKeys "{Home}+{End}"

It doesn't work!! The text box does not have the focus..help


Gerard