it will go whereever the cursor is located. If you want someone to push a button and have "COLOR" input in a text box, you must first change the focus.

Private Sub Command1_Click()
text1.setfocus ' Sets focus to the txet1 textbox
sendkeys "COLOR" 'Types COLOR in the text1.text
end sub

it will go whereever the cursor is located. If you want someone to push a button and have "COLOR" input in a text box, you must first change the focus.

Private Sub Command1_Click()
text1.setfocus ' Sets focus to the txet1 textbox
sendkeys "COLOR" 'Types COLOR in the text1.text
end sub

Thanxs

This article has been dead for over six months. Start a new discussion instead.