LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #11   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default command button and the "enter" and "tab" keys

Does it make a difference if you have solved your problem?

--
Regards,
Tom Ogilvy


"dr chuck" wrote in message
...
i have no idea what a "user form" is.

<vvbf
dr chuck


"Dave Peterson" wrote:

That was my reply in the other branch <bg.

But a couple of good reasons to use code might be so that you could
copy|paste
to other userforms and not have to remember to change the properties
manually.

And it's easier to explain using sample code rather than how to get to
the
properties window <vvbg.



Tom Ogilvy wrote:

In my opinion, better to set it in design mode in the VBE. doesn't
sound
like something that would need to be changed.

Set it like any property of a control - using the properties window.

--
Regards,
Tom Ogilvy

"Dave Peterson" wrote in message
...
I'd put it in the userform_initialize routine. And I'd drop the
double
quotes.
Just use the plain old Boolean value True.

But you have another reply in the other branch.

dr chuck wrote:

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


--

Dave Peterson


--

Dave Peterson



 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Excel - Golf - how to display "-2" as "2 Under" or "4"as "+4" or "4 Over" in a calculation cell Steve Kay Excel Discussion (Misc queries) 2 August 8th 08 01:54 AM
change "true" and "false" to "availble" and "out of stock" inthestands Excel Worksheet Functions 2 July 19th 07 07:05 PM
Help!!! Enter "7" in a cell and Excel changes the "7" to "11" immediately!!! [email protected] Excel Discussion (Misc queries) 3 January 5th 07 02:18 PM
HELP on "left","right","find","len","substitute" functions serene83 Excel Discussion (Misc queries) 5 June 27th 06 02:23 AM
Count occurences of "1"/"0" (or"TRUE"/"FALSE") in a row w. conditions in the next BCB New Users to Excel 7 May 13th 06 10:02 PM


All times are GMT +1. The time now is 10:33 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"