Textbox in Userform

mikeymay

Well-known Member
Joined
Jan 17, 2006
Messages
1,600
Office Version
  1. 365
Platform
  1. Windows
I seem to be unable to use the spaces in the contents of a textbox I have in a userform.

Is there some way of allowing this as I can;t seem to find a solution.


TIA
 

Excel Facts

When did Power Query debut in Excel?
Although it was an add-in in Excel 2010 & Excel 2013, Power Query became a part of Excel in 2016, in Data, Get & Transform Data.
Its not clear what your problem is.
What do you do, what does the userform do in response and what would you rather it did?
 
Upvote 0
The textbox is being used to enter some text. If I needed to add 'Item1' (no space), then I can do this but if I want to enter 'Item 1' (one space) it won;t allow it. When I press the space bar it does nothing.
 
Upvote 0
Do you have any code operating on the textbox?
 
Upvote 0
Sorry!!!

Worked out what the issue is. I am using a TRIM function when the control changes so it's removing the space added very quickly and it looks like it's not allowing the space entry.
 
Upvote 0

Forum statistics

Threads
1,215,509
Messages
6,125,216
Members
449,215
Latest member
texmansru47

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top