+ Reply to Thread
Results 1 to 3 of 3

Macro nonbreaking space after one-letter words

  1. #1
    Registered User
    Join Date
    05-30-2021
    Location
    London
    MS-Off Ver
    MS Office 16
    Posts
    2

    Macro nonbreaking space after one-letter words

    Hey,

    I am completely new to VBA, I've literally never used it before. All I need is a Macro that would find all one-letter words and place a nonbreaking space after them. I tried googling for quiet a while, but can't figure it out... This is what I've been able to put together, it's basically just copypasting what I found and replacing the .Text, so no wonder it doesn't work.

    Please Login or Register  to view this content.
    Thanks all for help.

  2. #2
    Registered User
    Join Date
    03-10-2021
    Location
    Paryzevo
    MS-Off Ver
    2k3
    Posts
    60

    Re: Macro nonbreaking space after one-letter words

    Welcome to the forum,

    Quote Originally Posted by DontKnowVBA View Post
    ... Macro that would find all one-letter words and place a nonbreaking space after them ...
    ???
    One-letter words ... where ? In Excel workbook on some sheet ? In Word document ? In some text file (csv, txt) ? What should the output layout look like ? Some sample file would be required with the result visualization.
    ???

  3. #3
    Registered User
    Join Date
    05-30-2021
    Location
    London
    MS-Off Ver
    MS Office 16
    Posts
    2

    Re: Macro nonbreaking space after one-letter words

    Sorry for not saying, it should be in a Word document. It should prevent splitting at the end of the line.
    Attachment 734680

    Desired output:
    Attachment 734681

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. [SOLVED] Space after Capital Letter
    By Dineth in forum Excel General
    Replies: 8
    Last Post: 10-10-2023, 04:23 AM
  2. Add Space After Detecting A Symbol Next To A Letter Or Number
    By Genus Max in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 10-19-2020, 09:08 PM
  3. Replies: 25
    Last Post: 04-21-2015, 10:19 AM
  4. Replies: 7
    Last Post: 06-05-2014, 02:50 AM
  5. Replies: 5
    Last Post: 10-09-2013, 05:59 PM
  6. Putting a space before a letter, after a number
    By Monkey106 in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 09-01-2010, 06:33 PM
  7. space between evey letter
    By james.halliwell in forum Excel General
    Replies: 1
    Last Post: 04-03-2009, 08:10 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1