SOLVED

Chart sheet default paper size

Copper Contributor

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 size, but I'd like it to create using 'Legal' by default.

 

Is there any way to change the default paper size for chart sheets?

 

Note that when I open a new workbook and click File > Print, the paper size is shown as Legal.

 

Thanks

 

 

4 Replies

@_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.

 

  1. Press ALT+F11 to open the Visual Basic Editor (VBE)
    1. Alternatively you can click on the Developer tab (must be showing) and click 'Visual Basic'
  2. Show Project Explorer (CTRL+R)
  3. Expand your file/project
  4. Expand 'Microsoft Excel Objects'
  5. Double click on 'ThisWorkbook'
  6. Paste the below code
  7. 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

@Zack Barressethanks for this solution - works well!

 

If I understand correctly, I need to create this macro in each new workbook I create, in order for it to be active in that workbook... Do you know any way I can make excel create new workbooks with this macro already present?

best response confirmed by _jon_ (Copper Contributor)
Solution

@_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.

Thanks Zack
1 best response

Accepted Solutions
best response confirmed by _jon_ (Copper Contributor)
Solution

@_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.

View solution in original post