![]() If you are using XL2007 or above, make sure you save your file as an "Excel Macro-Enabled Workbook (*.xlsm) and answer the "do you want to enable macros" question as "yes" or "OK" (depending on the button label for your version of Excel) the next time you open your workbook. You can now use Spaces just like it was a built-in Excel function. Start quickly with the most recent versions of Word, Excel, PowerPoint, Outlook, OneNote and OneDrive combining the familiarity of Office and the unique Mac features you love. ![]() To install it, simply press ALT+F11 to go into the VB editor and, once there, click Insert/Module on its menu bar, then copy/paste the above code into the code window that just opened up. If you are new to UDFs, they are easy to install and use. Spaces = Application.Replace(Spaces, X + 1, 0, " ") If Mid(Spaces, X, 3) Like "" Or Mid(Spaces, X, 3) Like "#" Then Spaces = Application.Replace(Spaces, X, 0, " ")įor X = 1 To InStr(Spaces & " ", " ") - 1 ![]() If Mid(Spaces, X - 1, 2) Like "" Or Mid(Spaces, X - 1, 2) Like "" Then Function Spaces(TextIn As String) As String
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |