activesheet.pagesetup

  1. A

    Removing unnecessary lines of "recorded" code

    Just wondering if anyone can help me remove unnecessary (or redundant) lines of code in the following "recorded" macro? Many thanks in advance, Jerry Option Explicit Sub cleanup() Application.ScreenUpdating = False 'reduces processing time Application.Calculation = xlCalculationManual...
  2. C

    Help with Macro to make it do all Worksheets

    I recorded this macro in a workbook with two worksheets. I need this macro to run for all worksheets in any file I open so the worksheet names change etc. The macro basically should set the print area based on areas that change per report, change the margins, and leave the cursor in A1.
  3. W

    How to automatically set print options for all sheets

    Hi, I have a lot of worksheets in a workbook where the size of the spreadsheets used range is different and I want to assign one print macro to all sheets. I have recorded this with the macro recorder but it doesn't work for the other sheets, only the sheet which I record with the macro...
  4. P

    VBA Export as A4 PDF produces a PDF where paper size is larger than A4

    I use first the "ActiveSheet.PageSetup", to set the paper size to A4 and then the "ExportAsFixedFormat Type:=xlTypePDF" to create the pdf. When my work sheet is formatted to be with somewhat narrower data and the paper orientation is Portrait, the PDF is correct size 210x297mm. But if I format...
  5. M

    PDF macro not printing active sheet

    I have a spreadsheet with two tabs, and I have a macro for each of them. They used to both work perfectly... I'm not sure what's changed, but now when I use the macro for the second tab, it creates a PDF of the first tab. Here is the code I'm using: Sub BTAVariancePDF() ' ' BTAVariancePDF...
  6. M

    VBA was working fine. now adding blank pages

    Through this page I received excellent assistance getting a VBA to print the pages from my call schedule. I copy forward each month and make changes and it works great!!!! Until this month when it started adding blank pages. In particular 4 blank pages with the appropriate footer after the...

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
Back
Top