Formatting code for "Back To Index" Sheet

kdlenort

Board Regular
Joined
May 17, 2010
Messages
102
Office Version
  1. 2013
Platform
  1. Windows
Hi all,
Looking for some assistance to add formatting to the following excerpt from the code within a sheet named Index.
[With wSheet
.Range("A1").Name = "Start" & wSheet.Index
.Hyperlinks.Add Anchor:=.Range("A1"), Address:="", SubAddress:= _
"Index", TextToDisplay:="Back to Index"]

Each sheet within the workbook will have a hyperlink Back to index added to Cell A1 when I insert the Index sheet into a workbook.

My issue is the hyperlink font on all the sheets except for the Index sheet always reverts back to Courier size 8.

All my work is done in Times New Roman Font so I would like the hyperlink to follow suit and stay Times New Roman size 8.

Any assistance is GREATLY appreciated ;) Thanks!!
 

Excel Facts

Ambidextrous Undo
Undo last command with Ctrl+Z or Alt+Backspace. If you use the Undo icon in the QAT, open the drop-down arrow to undo up to 100 steps.
Something like this:
Code:
With wSheet
    .Hyperlinks.Add Anchor:=.Range("A1"), Address:="", SubAddress:= _
    "Index", TextToDisplay:="Back to Index"
    With .Range("A1")
        .Name = "Start" & wSheet.Index
        With .Font
            .Name = "Times New Roman"
            .Size = 8
        End With
    End With
End With
 
Upvote 0

Forum statistics

Threads
1,224,559
Messages
6,179,517
Members
452,921
Latest member
BBQKING

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