Forum Discussion
_jon_
Jun 07, 2019Copper Contributor
Chart sheet default paper size
Hi, When I select data in an excel 365 worksheet and press F11 to chart it, the chart sheet creates using the 'Letter' paper size... I can manually change the chart sheet to use 'Legal' paper siz...
- Jun 10, 2019
_jon_ you'd have to add the solution to a file, then save it as a template, and open a Workbook from that template every time. It's probably something I'd create a macro for and store it in your Personal.xlsb file, then assign it to a Ribbon/QAT button.
Zack Barresse
Jun 07, 2019Iron Contributor
_jon_ hello there. There is no way to change this by default. IIRC this is tied to your regional [OS] settings. You can circumvent this with code.
- Press ALT+F11 to open the Visual Basic Editor (VBE)
- Alternatively you can click on the Developer tab (must be showing) and click 'Visual Basic'
- Show Project Explorer (CTRL+R)
- Expand your file/project
- Expand 'Microsoft Excel Objects'
- Double click on 'ThisWorkbook'
- Paste the below code
- Close code window
Private Sub Workbook_NewChart(ByVal Ch As Chart)
If Ch.Type = 3 And Ch.Parent.Name = ThisWorkbook.Name Then
Ch.PageSetup.PaperSize = xlPaperLegal
End If
End Sub