+ Reply to Thread
Results 1 to 5 of 5

Formatting in Word

  1. #1
    Registered User
    Join Date
    07-08-2020
    Location
    Baton Rouge, LA
    MS-Off Ver
    10
    Posts
    3

    Lightbulb Formatting in Word

    I have this:
    8 thick slices of bacon (4 ounces) 2 tablespoons minced shallot 1 1/2 tablespoons sherry vinegar 3 tablespoons extra-virgin olive oil Salt and freshly ground pepper 1 large head of frisée, torn into bite-size pieces (8 cups) 2 pounds assorted tomatoes, large ones sliced or cut into wedges 6 ounces blue cheese, such as Stilton, cut into 4 equal wedges

    and I want:

    8 thick slices of bacon (4 ounces)
    2 tablespoons minced shallot
    1 1/2 tablespoons sherry vinegar
    3 tablespoons extra-virgin olive oil
    Salt and freshly ground pepper
    1 large head of frisée, torn into bite-size pieces (8 cups)
    2 pounds assorted tomatoes, large ones sliced or cut into wedges
    6 ounces blue cheese, such as Stilton, cut into 4 equal wedges

    Can anyone help?

  2. #2
    Valued Forum Contributor Haluk's Avatar
    Join Date
    02-14-2019
    Location
    Turkiye
    MS-Off Ver
    2010 - 64 Bit on Windows-11 (22 H2) 64 Bit
    Posts
    1,147

    Re: Formatting in Word

    I guess you had to post your message in the "Word" part of the forum.

    On the other hand, this VBA code does most of the job..... Select the paragraph and run the code.

    Please Login or Register  to view this content.
    Last edited by Haluk; 07-08-2020 at 03:19 PM.

  3. #3
    Registered User
    Join Date
    07-08-2020
    Location
    Baton Rouge, LA
    MS-Off Ver
    10
    Posts
    3

    Re: Formatting in Word

    Just about perfect, the only exception is if the code a second capital letter in a line it add a vbr character and there is an extra space added before each except the first line. Thank you very much.

  4. #4
    Valued Forum Contributor Haluk's Avatar
    Join Date
    02-14-2019
    Location
    Turkiye
    MS-Off Ver
    2010 - 64 Bit on Windows-11 (22 H2) 64 Bit
    Posts
    1,147

    Re: Formatting in Word

    Thanks for the feedback,

    Related with the extra space character at the beginning of the new lines, you can try the below revised code;

    Please Login or Register  to view this content.

  5. #5
    Registered User
    Join Date
    07-08-2020
    Location
    Baton Rouge, LA
    MS-Off Ver
    10
    Posts
    3
    What does regExp.Pattern = "\s(\d.)" and $1 mean

+ 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. Conditional Formatting for every Nth word
    By ocelik in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 07-12-2019, 05:12 PM
  2. Word to excel formatting
    By Eduards in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 11-21-2018, 07:25 AM
  3. [SOLVED] APA Outline formatting in Word
    By liquidmettle in forum Word Formatting & General
    Replies: 4
    Last Post: 04-27-2016, 09:47 PM
  4. Replies: 2
    Last Post: 10-30-2014, 01:49 AM
  5. Formatting in Word
    By UNAB in forum Microsoft Windows Help
    Replies: 1
    Last Post: 06-30-2013, 07:52 PM
  6. Maintaining formatting - Excel => Word
    By ChrisMattock in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 05-11-2006, 03:40 AM
  7. Formatting for merging into Word
    By Shawna in forum Excel General
    Replies: 0
    Last Post: 02-24-2005, 07:06 PM

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