954,582 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Have something to say? Contribute New Article Reply to this Article

send keys

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

SpS
Posting Pro
599 posts since Aug 2005
Reputation Points: 70
Solved Threads: 32
 

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

purplegerbil
Junior Poster in Training
78 posts since Apr 2005
Reputation Points: 24
Solved Threads: 6
 

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??

SpS
Posting Pro
599 posts since Aug 2005
Reputation Points: 70
Solved Threads: 32
 

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

jwshepherd
Junior Poster
123 posts since Jun 2005
Reputation Points: 20
Solved Threads: 5
 

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

SpS
Posting Pro
599 posts since Aug 2005
Reputation Points: 70
Solved Threads: 32
 
The_Inferno
Newbie Poster
10 posts since Sep 2005
Reputation Points: 10
Solved Threads: 0
 

This article has been dead for over three months

Post: Markdown Syntax: Formatting Help
You