Hi there,
Just wondering if someone could help me with my memory block?
I'm simply wanting a VBA routine to double underline the word "PROJECT" in line 5.
Many thanks,
Jerry
Hi there,
Just wondering if someone could help me with my memory block?
I'm simply wanting a VBA routine to double underline the word "PROJECT" in line 5.
Many thanks,
Jerry
Maybe the below will help:
Please Login or Register to view this content.
If things don't change they stay the same
Or this:
BSBPlease Login or Register to view this content.
May be:
PHP Code:
Option Explicit
Sub DoubleLine()
Dim f, addr As String
Set f = Rows(5).Find("*PROJECT*")
If Not f Is Nothing Then
addr = f.Address
f.Font.Underline = xlNone
f.Characters(InStr(1, f, "PROJECT"), 7).Font.Underline = xlUnderlineStyleDouble
Do
Set f = Rows(5).FindNext(f)
If Not f Is Nothing Then
f.Font.Underline = xlNone
f.Characters(InStr(1, f, "PROJECT"), 7).Font.Underline = xlUnderlineStyleDouble
End If
Loop Until f.Address = addr
End If
End Sub
Quang PT
In case of the multiple appearances in the same cell.
Please Login or Register to view this content.
Greetings BadlySpelledBuoy,
Thanks so much for the code you provided.
I really don't know why I'm getting this compile error re: "Expected End Sub"?
Regards,
Jerry
Thank you so much CheeseSandwich,
I really appreciate your response.
I'm having problems testing your code and I'm sure it's something I'm doing wrong!
I keep getting the attached Compile error "Expected End Sub" so it's definitely something I'm doing wrong!
Any thoughts?
Jerry
"End Sub" statement missing ?
See attached which has macros from replies.
If that takes care of your original question, please select Thread Tools from the menu link above and mark this thread as SOLVED.
Thanks very kindly JohnTopley!
I've been unable to view the macro due to security message.
Would you mind providing it to me?
Many thanks,
Jerry
Sorry BadlySpelledBuoy,
I made a mistake testing the macro and got the Compile error...my bad!
I noticed the double underlined text is not very noticeable so, instead of applying a double line, would it be possibe to just increase the "size" of the font for the word "PROJECT"?
Thanks so much,
Jerry
Sorry CheeseSandwich,
I made a mistake testing the macro and got the Compile error...my bad!
Many thanks again,
Jerry
Dear bebo021999,
I just want to thank you for your kind response to my question!
Have a great day,
Jerry
Thank you so much jindon!
I really appreciate your response.
I noticed the double underlined text is not very noticeable so, instead of applying a double line, would it be possibe to just increase the "size" of the font for the word "PROJECT"?
Very Grateful,
Jerry
Try
BSB macroPlease Login or Register to view this content.
Thanks so much JohnTopley!
Works just as expected with no problems.
Have a great day,
Jerry
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks