Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default keyboard event in user form


I have a fairly compex userform controlling a hotel reservation system.

I have an annoying problem that occurs when the user presses th
"enter/return" key - all data on the form disappears. Note: Thi
happens before data is saved.

How can I trap the event , not lose the data entered, and continu
entering data on to the form?

Thanks, gpj

--
gpj
-----------------------------------------------------------------------
gpjb's Profile: http://www.excelforum.com/member.php...fo&userid=1408
View this thread: http://www.excelforum.com/showthread.php?threadid=38253

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 340
Default keyboard event in user form

Have you set a break point right before you display the form so that you can
walk through the code that is triggered when the user presses enter? It
sounds like one of your macros is clearning the form and you just have to
find out why.

Bob Flanagan
Macro Systems
Delaware, U.S. 302-234-9857
http://www.add-ins.com
Productivity add-ins and downloadable books on VB macros for Excel

"gpjb" wrote in message
...

I have a fairly compex userform controlling a hotel reservation system.

I have an annoying problem that occurs when the user presses the
"enter/return" key - all data on the form disappears. Note: This
happens before data is saved.

How can I trap the event , not lose the data entered, and continue
entering data on to the form?

Thanks, gpjb


--
gpjb
------------------------------------------------------------------------
gpjb's Profile:
http://www.excelforum.com/member.php...o&userid=14081
View this thread: http://www.excelforum.com/showthread...hreadid=382530



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1,120
Default keyboard event in user form

Finding the problem has to be better than trying to trap the enter key. Step
through the code and check the point at which the data gets cleared.

--
HTH

Bob Phillips

"gpjb" wrote in message
...

I have a fairly compex userform controlling a hotel reservation system.

I have an annoying problem that occurs when the user presses the
"enter/return" key - all data on the form disappears. Note: This
happens before data is saved.

How can I trap the event , not lose the data entered, and continue
entering data on to the form?

Thanks, gpjb


--
gpjb
------------------------------------------------------------------------
gpjb's Profile:

http://www.excelforum.com/member.php...o&userid=14081
View this thread: http://www.excelforum.com/showthread...hreadid=382530



  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default keyboard event in user form


Thanks for your thoughts.

I set the break so I could identify the sub routine clearing the data.
Once I identified it, a simple instruction in the routine gives user
choice to clear or not. However, something is calling the routine and I
haven't a clue as to why. There is no instruction anywhere, nor is
there any onkey event to call it.

Thanks again - gpjb


--
gpjb
------------------------------------------------------------------------
gpjb's Profile: http://www.excelforum.com/member.php...o&userid=14081
View this thread: http://www.excelforum.com/showthread...hreadid=382530

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
How to: User Form to assign a user defined range to a macro variab TrevTrav Excel Programming 1 March 22nd 05 07:57 PM
EXCEL 2002: How do I user/simulate a Timer event in Excel form JohnF[_2_] Excel Programming 12 September 23rd 04 04:56 PM
EXCEL 2002: How do I user/simulate a Timer event in Excel form John Fejsa Excel Programming 2 August 18th 04 03:44 AM
user form-on open event? keydown event? FSt1[_3_] Excel Programming 2 August 5th 04 02:26 PM
How to catch mouse/keyboard event in Office addin Frank King Excel Programming 4 October 13th 03 10:14 PM


All times are GMT +1. The time now is 10:44 AM.

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"