Unable to change link font (keeps changing back to default)

Ironman

Well-known Member
Joined
Jan 31, 2004
Messages
1,038
Office Version
  1. 365
Platform
  1. Windows
Hi

Cell B1 contains a link with the word ACTIVITY. I change the font to Segoe UI size 9 and it works fine until I next open the workbook, when it reverts to the default Comic Sans MS and it's driving me nuts.

I recently changed the default hyperlink font to Comic Sans MS in the Excel Styles toolbar, which I guess is what's causing the problem but I still want all other current and future links to be in Comic Sans MS font.

Help appreciated!

Many thanks
 

Excel Facts

Why does 9 mean SUM in SUBTOTAL?
It is because Sum is the 9th alphabetically in Average, Count, CountA, Max, Min, Product, StDev.S, StDev.P, Sum, VAR.S, VAR.P.

Michael M

Well-known Member
Joined
Oct 27, 2005
Messages
21,282
Office Version
  1. 365
  2. 2007
Platform
  1. Windows
Rich (BB code):
I recently changed the default hyperlink font to Comic Sans MS in the Excel Styles toolbar, which I guess is what's causing the problem but I still want all other current and future links to be in Comic Sans MS font.

You've answered your own question really Paul !!
Try changing the style on B1 to some other style....It's still a hyperlink
 

Ironman

Well-known Member
Joined
Jan 31, 2004
Messages
1,038
Office Version
  1. 365
Platform
  1. Windows
I'm sorry, I haven't answered my own question. I said I've changed the font in that cell many times and the next time the workbook opens it reverts to Comic Sans MS.

I've tried changing the style but it applies to the whole sheet, not just cell B1 that I selected when I changed the style.
 

Michael M

Well-known Member
Joined
Oct 27, 2005
Messages
21,282
Office Version
  1. 365
  2. 2007
Platform
  1. Windows
Ummm, yes you have
Rich (BB code):
I recently changed the default hyperlink font to Comic Sans MS in the Excel Styles toolbar
Rclick on cell B1...go to styles >> New Style Chnge formats as required>>OK
 

Ironman

Well-known Member
Joined
Jan 31, 2004
Messages
1,038
Office Version
  1. 365
Platform
  1. Windows

ADVERTISEMENT

I've tried changing the style but it applies to the whole sheet, not just cell B1 that I selected when I changed the style.
Yes, that's what I tried and it then applied that font to all the links in the sheet, even though I only selected B1 before I went to Styles etc...just as you said.
 
Last edited:

Michael M

Well-known Member
Joined
Oct 27, 2005
Messages
21,282
Office Version
  1. 365
  2. 2007
Platform
  1. Windows
I recorded a macro creating a new style for that cell, then put the macro in the wrokbook_open event

1632461249291.png
 

Attachments

  • 1632461116033.png
    1632461116033.png
    26.4 KB · Views: 3

Ironman

Well-known Member
Joined
Jan 31, 2004
Messages
1,038
Office Version
  1. 365
Platform
  1. Windows

ADVERTISEMENT

Thanks Michael. I've already tried putting code into the worksheet_open event and it makes no difference. I can actually see the font change back to Sans Comic MS.
 

Michael M

Well-known Member
Joined
Oct 27, 2005
Messages
21,282
Office Version
  1. 365
  2. 2007
Platform
  1. Windows
Works fine for me...I'd suggest you have a code somewhere changing it back to the hyperlink style
VBA Code:
 Sheets("Training Log").Range("B1").Style = "Mykel"
 

Michael M

Well-known Member
Joined
Oct 27, 2005
Messages
21,282
Office Version
  1. 365
  2. 2007
Platform
  1. Windows
Not much difference in 'em Paul
Exercise Log.xlsm
B
8669ACTIVITY
8670ACTIVITY
Training Log
 

Ironman

Well-known Member
Joined
Jan 31, 2004
Messages
1,038
Office Version
  1. 365
Platform
  1. Windows
Hmm...I put this in the worksheet_open event
VBA Code:
Sheets("Training Log").Range("B1").Style = "Segoe UI"
and it returned error 450.
 
Master Excel Bundle

Excel contains over 450 functions, with more added every year. That’s a huge number, so where should you start? Right here with this bundle.

Forum statistics

Threads
1,164,268
Messages
5,836,301
Members
430,419
Latest member
silvaleroy

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
Top