Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Textbox error checK problems

I am using a Toggle button and two Textboxes and i need to error tra
to make sure that there is text in the Textbox or i want to generate a
error and End Sub.

My code is



If S74FailQualityFailToggleButton.Value = True An
Len(Section74ComboBox.Text) < 1 Or _
Len(QualityComboBox.Text) < 1 Then
MsgBox ("YOU MUST ENTER A REASON FOR THE SECTION 74 / QUALIT
FAILURE !!"), vbCritical, "ERROR CODE 012"
Exit Sub
Else
End If


What i was trying to do was say if the togglebutton is pressed (True)
and there is text in the two textboxes then continue othrwise infor
the user why there is an error.


Can anyone suggest a fix for this problem.

Thanks in advance

--
Message posted from http://www.ExcelForum.com

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default Textbox error checK problems

It appears you are putting up an error message if the toggle button is true
and either textbox is empty. That seems to correspond with what you want to
do. What is the problem?

--
Regards,
Tom Ogilvy

"Jako " wrote in message
...
I am using a Toggle button and two Textboxes and i need to error trap
to make sure that there is text in the Textbox or i want to generate an
error and End Sub.

My code is



If S74FailQualityFailToggleButton.Value = True And
Len(Section74ComboBox.Text) < 1 Or _
Len(QualityComboBox.Text) < 1 Then
MsgBox ("YOU MUST ENTER A REASON FOR THE SECTION 74 / QUALITY
FAILURE !!"), vbCritical, "ERROR CODE 012"
Exit Sub
Else
End If


What i was trying to do was say if the togglebutton is pressed (True)
and there is text in the two textboxes then continue othrwise inform
the user why there is an error.


Can anyone suggest a fix for this problem.

Thanks in advance.


---
Message posted from http://www.ExcelForum.com/



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
If statement error check lghovden06 Excel Worksheet Functions 1 July 9th 08 11:05 PM
textbox ,problems? scott t Excel Programming 4 April 21st 04 03:41 AM
spell check a textbox KimberlyC Excel Programming 1 January 14th 04 07:30 PM
Userform Textbox Currency Format Problems Dunce in SC Excel Programming 2 October 27th 03 12:45 AM
check variable(text) with cell (text), textbox Mark[_17_] Excel Programming 1 August 27th 03 01:15 PM


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