#1
|
|||
|
|||
Underlining Certain texts within a paragraph
Hi all!
I've got a cell within a table, and within those cells are bullets as such:
So what I'd like to do is to underline everything between In particular to and ":" Im putting the entire cell into a For Each objParagraph In Selection.Range.Paragraphs loop, after which I did calculations to get the Starting & Ending index(Int) to underline per paragraph/bullet(Via Len() function). However I do not know how to manipulate these range or underline where range is between Starting & Ending. Kindly seeking your assistance :/ sorry for bad english haha *Sorry I've got no codes to show, my work is within a VPN Environment & extremely difficult to extract as such. |
#2
|
||||
|
||||
You don't need a macro for that. It can all be done with a wildcard Find/Replace, where:
Find = In particular to [!:]@: Replace = ^& with the Replace formatted to apply underlining. To access the wildcard and formatting Find/Replace options, click on the Find/Replace dialog's 'More' button.
__________________
Cheers, Paul Edstein [Fmr MS MVP - Word] |
#3
|
|||
|
|||
Sorry!! I see haha, that's how its done, however I'm not very familiar with that :x
Are there examples I may be able to refer to ? |
#4
|
||||
|
||||
Have you actually tried doing the wildcard Find/Replace? It's not exactly rocket science...
__________________
Cheers, Paul Edstein [Fmr MS MVP - Word] |
#5
|
|||
|
|||
I've done the codes as your suggestion, seems to work now...
I'm just stuck with the second part about replace :/ i dont really know how to do the replace ... So sorry. However, thank you so much for the help! (Y) *bumps* |
#6
|
||||
|
||||
I have given both the Find expression and the Replace expression and I've told you how to use them. It's a bit rich, then, for you to say "i dont really know how to do the replace".
__________________
Cheers, Paul Edstein [Fmr MS MVP - Word] |
#7
|
|||
|
|||
hahaha, I've done research and managed to solve it. Apologies, I'm really new to this!!
|
Tags |
macro, word vba highlight text |
Thread Tools | |
Display Modes | |
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Word 2013. Automatically underlining | ukthesis | Word | 2 | 02-28-2016 03:26 AM |
Underlining a Phrase causes the whole document to be underlined | goldye | Word | 1 | 01-28-2015 02:08 PM |
Stop underlining pasted data | LarryStroup | PowerPoint | 5 | 01-11-2012 12:47 PM |
Word 2011 underlining | wintercs | Word | 1 | 09-24-2011 07:20 AM |
Underlining in black under different colors | 87bob | Word | 2 | 04-21-2010 03:37 PM |