![]() |
Disallowing a blank text box
Hi, I am creating a user form, quite successfully so far, but need the first text box to not allow the user to leave it blank. The data writes to a table and if it is left blank it will overwrite it the next time data is posted as it searches for the first blank cell in column A and writes across the row from it. I guess one option is for the program to search for a blank ROW rather than a blank cell in column A. Any help is appreciated! Thanks Kristen -- Kristen ------------------------------------------------------------------------ Kristen's Profile: http://www.excelforum.com/member.php...o&userid=33199 View this thread: http://www.excelforum.com/showthread...hreadid=530182 |
Disallowing a blank text box
Hi Kristen
Somthing like this, prompt the user to put in a value. if textbox1 = "" then msgbox "Enter a value" TextBox1.SetFocus endif Regards Yngve |
All times are GMT +1. The time now is 11:01 PM. |
Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com