View Single Post
  #6   Report Post  
Posted to microsoft.public.excel.programming
dr chuck dr chuck is offline
external usenet poster
 
Posts: 74
Default command button and the "enter" and "tab" keys

Dave,
I do not understand how? where ? to apply the cancel property and or the
default property. I did find these finally under help in VBA.

what is the syntax

commandbutton1.default= "true"

If so where do you put this? at the beginning of the macro i already have
written for this button?

--
dr chuck


"Dave Peterson" wrote:

And if you have a button that cancel's the form, you may want to change its
Cancel property to True. Then you can hit the escape key to close the form.

dr chuck wrote:

I have an extensive macro that works when my command button titled
" Private Sub registrationcomplete_Click() " is clicked.

I have a series of text boxes that are programmed to tab to the next text
box and ultimately to the command box in question. When this series of
textbox's and tabs get to the command box the command box is highlighted.

I would like to be able to activate the command box by either clicking on it
or pressing enter since it is already highlighted.

I am not sure if the command to allow entering to activate the command box
can be entered into the "click" macro above or if a separate macro must be
written?

Suggestions?
--
dr chuck


--

Dave Peterson