Hi all,
How can I add the contents of of Combobox7 (which contains the letter "T") to the 8th position/character
of TextBox 5??
Hi all,
How can I add the contents of of Combobox7 (which contains the letter "T") to the 8th position/character
of TextBox 5??
change the red part to combobox7 or any other source
Kind regardsPlease Login or Register to view this content.
Leo
So it would look like this-
Please Login or Register to view this content.
Last edited by bralew; 10-20-2016 at 06:39 AM.
Thanks, where would I paste this? under-
Private Sub ComboBox7_Change()
A more direct way is to use a much under utilised feature of the MID() function. Instead of 'cutting' from a starting position as it is usually used, you can 'stuff' into the string as well...
Please Login or Register to view this content.
Hi, I get this?
Last edited by bralew; 10-20-2016 at 07:00 AM.
My apologies, I misread. That feature can only be used to replace a fixed number of characters with the same number of characters. So you cannot replace from position 8 with a length of 1 and then specify more than 1 character as the replacement. If you say from position 8 with a length of 8, then the original string must be longer than 16 characters total or your replacement gets truncated. This will not change the length of the original string.
Hi,
I was kindly given this code by Leo Taxi but cannot get it to run. Any ideas?
Please Login or Register to view this content.
maybe change
toPlease Login or Register to view this content.
ElsePlease Login or Register to view this content.
Excel File
Cheers
Leo
Or
Please Login or Register to view this content.
thanks chaps, I'm in the office now, I'll give it a whirl and get back to you. Cheers
Thank You, it worked brilliantly!!!
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks