If you do, don't be afraid to make contact with some Aussie forum members... maybe one day I'll make it out there to the land down under ..
Yes, that's one of the great sights to see the bird in flight - great picture. The Flame Bower Bird is likely related, but not Australian. It is native to Papua New Guinea, just north of Australia.My goodness, what an astounding bird that Regent Bower is. Just looked at it on the net. See amazing wing span in first link below and then the others are of what must be a relative bird - The Flame Bower bird.
Sorry for the slow reply. I have not been on the forum lately and won't be around much for a few months.Is there any way ( Using the period and following two blank spaces as a reference point) to have the program underline only keywords after the occurrence of the period followed by two blank spaces, which once again only occurs one time in each cell.
Dim i As Long, j As Long, k As Long
Dim StartPos As Long
Erase tmp
s = Data(i, 1)
StartPos = InStr(1, s & ". ", ". ")
k = -1
For Each itm In AllMatches
If itm.firstindex > StartPos Then
k = k + 2
tmp(k) = itm.firstindex + 1
tmp(k + 1) = itm.Length
End If
Next itm
Okay, it turned out not to be as complicated as I first thought it might be... give this a try. Add a worksheet to your workbook and make its name "Words" (without the quotes) and then list all the words you want underlined in Column A starting at Row 1 (you can add words to, or subtract words from, this list as needed, but you will have to run the macro below every time afterwards.
Code:Sub UnderlineCertainWordsInColumnK() Dim X As Long, Position As Long, Cell As Range, Words As Variant Application.ScreenUpdating = False Words = Sheets("Words").Range("A1", Sheets("Words").Cells(Rows.Count, "A").End(xlUp)) Range("K:K").Font.Underline = False For Each Cell In Intersect(Columns("K"), ActiveSheet.UsedRange) For X = 1 To UBound(Words) Position = InStr(1, Cell.Value, Words(X, 1), vbTextCompare) Do While Position Cell.Characters(Position, Len(Words(X, 1))).Font.Underline = True Position = InStr(Position + 1, Cell.Value, Words(X, 1), vbTextCompare) Loop Next Next Application.ScreenUpdating = True End Sub
If you look at my code carefully, you will see it is expecting the worksheet to be named "Words" with an "s" at the end, not "Word" as you have indicated above that you named it.Hi,
I have tried to make this marcro work but cant get my head around why its not functioning.
I have created a tab and named it Word,