UnderLine Piece of Text on Footer By VBA

LectorFiel

New Member
Joined
Apr 11, 2015
Messages
15
Hello Everyone.

I am trying to underline a piece of text on the RIGHT footer side using a Macro. But I do not get the result I am looking for.
I know the character for underline, &U , but it does not works. I really appreciate any idea, or help me to detect what is my mistake.

What I am looking on the Right footer side is it:

Form Approved By/Date: Signature on file
Director of Quality

I want to uderline the text " Signature on file "

This is the macro I am using.

Sub AddFooter_CurrentSheetOnly()

With ActiveSheet.PageSetup
.LeftFooter = "Doc No. " & Worksheets("Input PKG").Range("B38") & vbLf _
& "Effective Date: " & Worksheets("Input PKG").Range("B39")
.RightFooter = "Form Approved By/Date: " & U & " Signature on file " & U & vbLf _
& " Director of Quality"
End With


End Sub

Thank you for your help.
 

Excel Facts

Test for Multiple Conditions in IF?
Use AND(test, test, test, test) or OR(test, test, test, ...) as the logical_test argument of IF.
Code:
.RightFooter = "Form Approved By/Date: [B]&USignature on file&U"[/B] & vbLf _
    & " Director of Quality"
 
Upvote 0
Thank you for your answer.

I Replaced the code for what you told me and It does not works, I printed and the the underline does not appears.

What else can I do ??

Thank you
 
Upvote 0
It worked for me. I don't know what else to tell you. Perhaps double check that your code is exactly as I suggested.
 
Upvote 0
Hi AlphaFrog.

I followed your Instructions and your are Right, It works Perfectly.

Thank you very much.

I wish you a great week, because for my it is already amazing.

Thanks again.
 
Upvote 0

Forum statistics

Threads
1,203,094
Messages
6,053,503
Members
444,667
Latest member
KWR21

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top