LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 18
Default Verify Userform complete before close

I have a userform with several textboxes for data input. Before the form is
closed I would like to check that all textboxes contain data. If one or more
is blank, I would like to cancel the close and alert the user.

I suspect I need a statement in the QueryClose event and I was trying to use
something like this:

For Each Textbox in Userform
(Statements)
Next

This doesn't work "Object doesn't support this property or method". I
suppose I'm having difficulty understanding what a collection is. Whatever my
lack of understanding, any help to check a userform for blank textboxes
before closing the form?

Thanks
Paul
 
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 cannot complete this task with available resources. choose less data or close other applications [email protected] Excel Programming 3 September 13th 07 04:12 PM
Excel can not complete this task with available resources. Choose less data or close other applications. [email protected] Excel Discussion (Misc queries) 1 November 12th 06 10:56 AM
close UserForm [email protected] Excel Programming 3 November 9th 06 02:33 AM
Copying Userform with Controls OR complete application. Arif Ali[_2_] Excel Programming 2 September 6th 06 03:40 PM
witing for ms word to complete tasks the close Pedro Leite Excel Programming 2 August 2nd 06 01:59 PM


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