ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Save Textbox "" value (https://www.excelbanter.com/excel-programming/398126-save-textbox-value.html)

Karen53

Save Textbox "" value
 
Hi,

I have a textbox which if the user does not make a change, saves the empty
textbox back to the worksheet. What I am finding is even though the cell is
emply my code is picking it up as having something in it. Does this process
add some kind of invisible character?

Thanks,
--

Karen

JW[_2_]

Save Textbox "" value
 
Though I have never encountered a problem, I suppose it could be
adding some type of invisible character. To get around that, you
could check the length of the textbox and use a If statement to check
and proceed accordingly.
If Len(Me.textBox1.Text)=0 Then Range("I5").ClearContents
Karen53 wrote:
Hi,

I have a textbox which if the user does not make a change, saves the empty
textbox back to the worksheet. What I am finding is even though the cell is
emply my code is picking it up as having something in it. Does this process
add some kind of invisible character?

Thanks,
--

Karen




All times are GMT +1. The time now is 07:42 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com