can anyone tell me about send keys.....if possible attach a small code also

Hi,
I find this site realy useful.

http://www.officecomputertraining.com/vbtutorial/tutpages/page9.asp#send

SendKeys is near the top of the page. You can search from the commands down the left.

Hope this helps.
pG

yaa i got what it said....but where should i embedd this code...where should i write this statement

SendKeys "Color" ...in a command button??....where will it go??

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

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.