Techware Labs Header

Forums have moved

See this announcement for more details, or just go directly there.

  #1  
Old 04-29-2002, 10:44 PM
coffejor
 
Posts: n/a
Default VB in Excel

Hello Guys/Gals of Netsmog

A friend of mine whipped up a really cool VB tool in Excel. This tool gives you a question, you answer it, and it scores you. My question is he wants to set his "Check Answer" button to recognize a stroke of the [Enter] key. Meaning, he wants to hit [Enter] and it does the same thing as if he pressed the "Check Answer" button. Any ideas?? I know that in Java you would do something like:

<input type = "button"...>
onKeystrike (enter) "CheckAnswer"

or something like that, since I am rambling on needlessly and obviously don't know what the hell I'm talking about, I'll shut up and leave it to those of you that know this stuff.

Thanks,
Jordan Coffey
Reply With Quote
  #2  
Old 05-01-2002, 07:41 AM
Propig
 
Posts: n/a
Default Re: VB in Excel

I am not really familiar with VB used in Excel, but in VB and in Access VB you have an "ON Click" event for buttons. You can put the code of what you want it to do there. (When the button is pressed, do something)

sub button1_Click()
  code goes here
end sub
Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -5. The time now is 02:10 PM. Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Forum style by ForumMonkeys.