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: 154
Default Trim not working

User enters their data on the form then clicks ok.
A sub executes, and initially I use trim on some of the
textboxes eg:

With FrmDataEntry
UsrName = Trim(.TbUsrName)
which doesn't work...and tried
UsrName = Trim(.TbUsrName.Value)
which doesn't work either.

However, this statement which is executed from a different form's click
event does work:

If Trim(Userform1.TextBox1) = "" Then

Education please!

Regards.


 
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
Trim and Substitute not working Fuzzy Excel Worksheet Functions 4 December 23rd 09 12:01 PM
Excel 2002 : Why =TRIM() formula not working ? Mr. Low Excel Discussion (Misc queries) 1 December 27th 08 10:20 AM
Excel 2002 : Why =Trim () formula not working ? Mr. Low Excel Discussion (Misc queries) 6 August 23rd 07 01:52 PM
Excel trim not working Kharpo7 Excel Discussion (Misc queries) 5 June 21st 05 12:53 AM
VBA Trim and Application.worksheetfunction.Trim Hari Prasadh Excel Programming 3 January 19th 05 02:22 PM


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