#1   Report Post  
Posted to microsoft.public.excel.programming
JT JT is offline
external usenet poster
 
Posts: 234
Default RefEdits

I have a macro that displays a form with 3 RefEdits. When the user is
finished, they click "ok" and the macro continues. One of the first thing I
do is check to ensure if all 3 RefEdits have data in it. If they don't the
macro sets the focus on the RefEdit that is empty.

I want the form to stay on the screen until all 3 RefEdits are completed.
It stays open and I can enter data but when I push "ok" the second time, the
form goes away and the macro appears to complete but it isnt finishing the
remaining steps.

Any suggestions? Thanks
--
JT
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 9,101
Default RefEdits

Either there is a userform.hide or there is an error in the code. Use the F9
key to put break points in all functions expecially inside RefEdit Code and
the line in main routine after the userform.show. then determine if an error
is really occuring.

try commenting out all ON ERROR statements to find errors.

"JT" wrote:

I have a macro that displays a form with 3 RefEdits. When the user is
finished, they click "ok" and the macro continues. One of the first thing I
do is check to ensure if all 3 RefEdits have data in it. If they don't the
macro sets the focus on the RefEdit that is empty.

I want the form to stay on the screen until all 3 RefEdits are completed.
It stays open and I can enter data but when I push "ok" the second time, the
form goes away and the macro appears to complete but it isnt finishing the
remaining steps.

Any suggestions? Thanks
--
JT

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
Refedits / Autotab JT Excel Programming 1 July 17th 07 09:02 PM
refedits in a userform control class Doug Glancy Excel Programming 10 June 3rd 05 10:39 PM
RefEdits and normal forms / forms in a DLL David Welch Excel Programming 0 December 1st 04 03:49 PM


All times are GMT +1. The time now is 05:53 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"