Torstein, I hope I am understanding your updated question.
=IF(LEFT(A1,1) = " ","There's a blank". Insert [ at start followed by five spaces,"Business as normal")
=IF(RIGHT(A1,1) = " ","There's a blank". Insert five spaces at the end, followed by a ] key,"Business as normal")
Use CONCATENATE to do this so the original text is preserved.
Regards, Paul
From: ExcelVBA@yahoogroups.com [mailto:ExcelVBA@yahoogroups.com]
Sent: Tuesday, 27 June 2017 6:31 PM
To: ExcelVBA@yahoogroups.com
Subject: Sv: [ExcelVBA] Display strings in messagebox (blank-sensitive)
My question/explanation may have been difficult to understand.
I want to display the strings in a messagebox (with or without blanks), but my problem is that I'm not able to see if the strings have blanks at the start or the end of the string.
I'm looking for how to "design" the listing in the messagebox so that I can see the blanks?
Torstein
Den Tirsdag, 27. juni 2017 8.06 skrev "'David Grugeon' grugeon@gmail.com [ExcelVBA]" <ExcelVBA@yahoogroups.com>:
You can use the TRIM function to remove the blanks.
Regards
David Grugeon
0429 029 836
From: ExcelVBA@yahoogroups.com [mailto:ExcelVBA@yahoogroups.com]
Sent: Tuesday, 27 June 2017 3:09 PM
To: ExcelVBA@yahoogroups.com
Subject: [ExcelVBA] Display strings in messagebox (blank-sensitive)
I use Excel to manipulate several strings and the result is sensitive for blanks at the start and the end of the strings.
That means I like to know if there are blanks when the strings are listed in a messagebox.
Do anyone have a good idea how I can list the strings in a messagebox so that I know if there are blanks to the left or to the right of the string?
regards
Torstein
Posted by: Paul Vermeulen <paul.vermeulen@vulcantech.com.au>
Reply via web post | • | Reply to sender | • | Reply to group | • | Start a New Topic | • | Messages in this topic (6) |
Be sure to check out TechTrax Ezine for many, free Excel VBA articles! Go here: http://www.mousetrax.com/techtrax to enter the ezine, then search the ARCHIVES for EXCEL VBA.
----------------------------------
Visit our ExcelVBA group home page for more info and support files:
http://groups.yahoo.com/group/ExcelVBA
----------------------------------
More free tutorials and resources available at:
http://www.mousetrax.com
----------------------------------
Tidak ada komentar:
Posting Komentar