Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3
Default Excel 2000 Text Box Issue

I am currently working with a VBA UserForm with several text boxes on
it. I am experiencing an intermittant problem with a couple of them.

On occaision, when the user attempts to use the tab key to move to the
next control, the tab key is recognized in the control as a character
rather than moving to the next control. Is this a quirk of Excel? I
can find plenty of sources to allow this kind of behavior but have not
found anything to prevent it.

I am only using the BeforeUpdate and Exit events. In the BeforeUpdate
event I am checking for a numeric value and the exit event I am
formating the entry to currency.

Since I'm testing for a numeric value and the tab character is not
recognized as a number, my BeforeUpdate works as it should but the user
loses all the information that they entered.

The user can still move out of the text box with the mouse, but this
can be a bit of an annoyance.

Thanks for any help you can provide. Let me know if you need any
further information.

Cory Bremer

  #2   Report Post  
Posted to microsoft.public.excel.programming
JNW JNW is offline
external usenet poster
 
Posts: 480
Default Excel 2000 Text Box Issue

I've had similar issues, and it is always periodic. You can use the
TabKeyBehavior property and set it to false. But it may be a quirk in 2000

"Cory" wrote:

I am currently working with a VBA UserForm with several text boxes on
it. I am experiencing an intermittant problem with a couple of them.

On occaision, when the user attempts to use the tab key to move to the
next control, the tab key is recognized in the control as a character
rather than moving to the next control. Is this a quirk of Excel? I
can find plenty of sources to allow this kind of behavior but have not
found anything to prevent it.

I am only using the BeforeUpdate and Exit events. In the BeforeUpdate
event I am checking for a numeric value and the exit event I am
formating the entry to currency.

Since I'm testing for a numeric value and the tab character is not
recognized as a number, my BeforeUpdate works as it should but the user
loses all the information that they entered.

The user can still move out of the text box with the mouse, but this
can be a bit of an annoyance.

Thanks for any help you can provide. Let me know if you need any
further information.

Cory Bremer


  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1,163
Default Excel 2000 Text Box Issue

Textboxes have a property TabKeyBehavior that determines this; from the Help
file:

True Pressing TAB inserts a tab character in the edit region.
False Pressing TAB moves the focus to the next object in the tab order
(default).


Remarks

The TabKeyBehavior and MultiLine properties are closely related. The values
described above only apply if MultiLine is True. If MultiLine is False,
pressing TAB always moves the focus to the next control in the tab order
regardless of the value of TabKeyBehavior.

--
- K Dales


"Cory" wrote:

I am currently working with a VBA UserForm with several text boxes on
it. I am experiencing an intermittant problem with a couple of them.

On occaision, when the user attempts to use the tab key to move to the
next control, the tab key is recognized in the control as a character
rather than moving to the next control. Is this a quirk of Excel? I
can find plenty of sources to allow this kind of behavior but have not
found anything to prevent it.

I am only using the BeforeUpdate and Exit events. In the BeforeUpdate
event I am checking for a numeric value and the exit event I am
formating the entry to currency.

Since I'm testing for a numeric value and the tab character is not
recognized as a number, my BeforeUpdate works as it should but the user
loses all the information that they entered.

The user can still move out of the text box with the mouse, but this
can be a bit of an annoyance.

Thanks for any help you can provide. Let me know if you need any
further information.

Cory Bremer


  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default Excel 2000 Text Box Issue

have you looked at the TabKeyBehavior Property of each of the text boxes?

True Pressing TAB inserts a tab character in the edit region.
False Pressing TAB moves the focus to the next object in the tab order
(default).


--
Regards,
Tom Ogilvy


"Cory" wrote in message
oups.com...
I am currently working with a VBA UserForm with several text boxes on
it. I am experiencing an intermittant problem with a couple of them.

On occaision, when the user attempts to use the tab key to move to the
next control, the tab key is recognized in the control as a character
rather than moving to the next control. Is this a quirk of Excel? I
can find plenty of sources to allow this kind of behavior but have not
found anything to prevent it.

I am only using the BeforeUpdate and Exit events. In the BeforeUpdate
event I am checking for a numeric value and the exit event I am
formating the entry to currency.

Since I'm testing for a numeric value and the tab character is not
recognized as a number, my BeforeUpdate works as it should but the user
loses all the information that they entered.

The user can still move out of the text box with the mouse, but this
can be a bit of an annoyance.

Thanks for any help you can provide. Let me know if you need any
further information.

Cory Bremer



  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3
Default Excel 2000 Text Box Issue

Thanks for the help, I'll try it out.



  #6   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3
Default Excel 2000 Text Box Issue

Thanks again for all of your help, but I've gone and checked all of my
text boxes. They all have their MultiLine and TabKeyBehavior
properties set to false. Any other ideas?

  #7   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default Excel 2000 Text Box Issue

I have never run into that as a problem. So I would say your experience is
atypical and possibly the result of something in your code or some other
property. But nothing leaps to mind for me. Assuming you arenot setting
Cancel to true in the Exit event and aren't using SetFocus or related.
Perhaps changing your event to afterupdate instead of beforeupdate.



--
Regards,
Tom Ogilvy

"Cory" wrote in message
oups.com...
Thanks again for all of your help, but I've gone and checked all of my
text boxes. They all have their MultiLine and TabKeyBehavior
properties set to false. Any other ideas?



Reply
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
Rounding issue in Excel 2000 GregNga Excel Discussion (Misc queries) 6 August 17th 09 11:19 PM
Excel 2000 Font Format Issue Tess Excel Discussion (Misc queries) 6 August 17th 09 10:41 PM
Excel text box issue peterhill Excel Discussion (Misc queries) 0 April 6th 09 03:41 AM
Excel 2000 Issue Scott Nash Setting up and Configuration of Excel 4 October 19th 06 08:11 PM
VBA Excel 2000 issue Dan Excel Programming 3 November 15th 04 06:56 PM


All times are GMT +1. The time now is 11:12 AM.

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

About Us

"It's about Microsoft Excel"