4
Contributors
5
Replies
7
Views
11 Years
Discussion Span
Last Post by The_Inferno
0

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

0

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 topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.