How to install your new code![]()
Function AddSpace(Str As String) As String Dim i As Long For i = 1 To Len(Str) AddSpace = AddSpace & Mid(Str, i, 1) & " " Next i AddSpace = Trim(AddSpace) End Function
Copy the Excel VBA code
Select the workbook in which you want to store the Excel VBA code
Press Alt+F11 to open the Visual Basic Editor
Choose Insert > Module
Edit > Paste the macro into the module that appeared
Close the VBEditor
Save your workbook (Excel 2007+ select a macro-enabled file format, like *.xlsm)
Then use:
=AddSpace(A3)
Bookmarks