Font error message

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

When trying to make a copy of a worksheet containing two charts, the
following message comes up: "No more font may be applied to this workbook."
On one of the charts, three axes, two Y and one X, are resized by Excel.
When trying to resize the axes fonts down again, the message appears again.
How do I get around this issue?

Thanks,
Phil
 
Debra,

Was wondering - John suggests a VBA fix for the active chart, and active
sheet (below). Could this code be modified to include the entire workbook?
Where would it be put? Would save a lot of work - I'm building a workbook
with about sixty charts...and this problem emurged when I had 12 worksheets
(24 charts) already created.

Altering the registry is not an option for me - I'm operating on a network
that does not allow such changes - it simply changes things back at the end
of the day.

Sub FixAllChartFonts()
Dim myCht As ChartObject
For Each myCht In ActiveSheet.ChartObjects
myCht.Chart.ChartArea.AutoScaleFont = False
Next
End Sub
 
Hi Phil,

This mod will do all chartsheets and charts on worksheets.

Sub FixAllChartFonts()
Dim myCht As ChartObject
Dim mySht As Object

For Each mySht In ActiveWorkbook.Sheets
If TypeName(mySht) = "Chart" Then
mySht.ChartArea.AutoScaleFont = False
ElseIf TypeName(mySht) = "Worksheet" Then
For Each myCht In mySht.ChartObjects
myCht.Chart.ChartArea.AutoScaleFont = False
Next
End If
Next
End Sub

Cheers
Andy
 
Andy, Thanks for your reply - appreciate the help.

Wasn't sure where to put the code, I have it in Module 1, This Workbook, and
one of the Worksheets "Remediation," which I'm using to test the code's
effect. So far, there is no change (I tried each one separately with no
results). All worksheets still have "Auto scaling" checkboxes checked.
Also, when I try to create a copy of the "Remediation" worksheet (to create a
new issues worksheet), I get the error message again. How do I use this code?

Thanks, Phil
 
You should place the code in a standard code module.
And then run the macro.

I have two extra lines so information should be displayed in the
statusbar. See inline changes.

Cheers
Andy
 
Thanks, Andy - this works perfectly.

Andy Pope said:
You should place the code in a standard code module.
And then run the macro.

I have two extra lines so information should be displayed in the
statusbar. See inline changes.

Cheers
Andy
 
Andy, A new wrinkle - when trying to format data labels for color, the error
message comes up again. I checked every font format and all AutoScale boxes
are unchecked. I am not allowed to change font colors. Any idea what is
causing this?

Regards, Phil
 
I assume you have saved the workbook since running autofont fix.
But other than that I can't think of anything new to suggest.

If you want to email me the file directly I will take a look see.

Cheers
Andy
 
Sent to (e-mail address removed)

Andy Pope said:
I assume you have saved the workbook since running autofont fix.
But other than that I can't think of anything new to suggest.

If you want to email me the file directly I will take a look see.

Cheers
Andy
 
Eagerly waiting to see how this turns out. My document doesn't have the
autoscale marked. And I keep getting this same error.
 
I get this error message "No more new fonts may be applied in this workbook"
following a migration from Office 97 to Office 2003. This error is occurring
on a complex workbook containing 25 Worksheets, which 5 are chart worksheets,
pulling info from the other 20 sheets.

This bottleneck is halting the migration. Any help would be appreciated.

Steve
 
It is not letting me to uncheck the AutoScale box. I have about 15 charts on
a worksheet.
Any help would be appreciated.
Thanks
 
Are you attempting to do all of them at once? We were only able to do so one
at a time. If the problem persists, check to see if the workbook or
worksheet is protected.
 
Andy are you still out there? I am working on a workbook that keep getting
that error about font. I have taken the autofont off of every chart. I seem
to be having a wrinkle, after I did this is I am still getting the error when
I try to copy or change a source area. I have around 112 charts right now
and have 28 more to go. I have been working on this prob all day and this
workbook for a month. Can you help?

Angie
 
Hi Angie,

Still around ;)
unfortunately I haven't got any more suggestion to those in this thread :(

Cheers
Andy
 
Back
Top