Created
February 9, 2016 18:01
-
-
Save philo-ng/279615dc3dfad90e2a4c to your computer and use it in GitHub Desktop.
Calling the VBA Trim function from Excel Cells
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ' | |
| ' The Excel built in function Trim removes excessive spaces in the string. It may cause data | |
| ' problem. The VBA Trim function only remove the leading and trailing spaces. | |
| ' | |
| Public Function VBA_Trim(value As String) As String | |
| VBA_Trim = Trim(value) | |
| End Function |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment