Quantcast
Channel: Active questions tagged excel - Stack Overflow
Viewing all articles
Browse latest Browse all 88854

Change font size of all shapes VBA excel

$
0
0

I can't get this code to work - does anyone have any suggestions? Seems easy but I don't know what I'm doing wrong... thanks in advance.

Edit: I have a bunch of charts with a textbox. I'm trying to change the font size within that textbox for all charts. This is a picture of what I mean

Sub shapeFont()
Dim shp As Shape

For Each shp In ActiveSheet.Shapes
    With shp.ShapeRange.TextFrame2.TextRange.Font
    .Size = 30
    End With
    Next shp

End Sub

Viewing all articles
Browse latest Browse all 88854

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>