WebOn the worksheet, select the cells that you want to define as the print area. Tip: To set multiple print areas, hold down the Ctrl key and click the areas you want to print. Each print area prints on its own page. On the Page … WebJul 9, 2024 · 365. Platform. Windows. Jul 8, 2024. #1. Need some help getting an area selected to become a variable. The reason is there are other areas on the sheet I do not …
Error 1004 setting print area MrExcel Message Board
WebJan 14, 2002 · Posted by Richard Winfield on January 14, 2002 8:06 AM. You can use this macro to set the print area to the used range of the activesheet. Sub SetPrintArea () ActiveSheet.PageSetup.PrintArea = "=" & ActiveSheet.UsedRange.Address. End Sub. Hope this helps. Rick. Posted by Ghentry on January 14, 2002 9:20 AM. Thanks for your … WebMay 8, 2024 · Excel Questions . VBA code for Print Area (LAST ROW) based on last row in column D or E with content. Thread starter ... .Orientation = xlLandscape .FirstPageNumber = xlAutomatic .FitToPagesWide = 1 '.FitToPagesTall = 1 End With ActiveSheet.PageSetup.PrintArea = Range(Cells(1, 1), Cells(LastRow, … lamparas g4 led
Workbook.ActiveSheet property (Excel) Microsoft Learn
WebMay 5, 2024 · Method 1: Change a group of worksheets. To apply page setup attributes to a group of worksheets in a workbook, follow these steps: Press CTRL and then click each … Webset PRINT AREA with variables. I am trying to set the print area delimited by two variables. The code I have created is that one but it is not working... - Set the print area from cell b5 to the limits found above. ActiveSheet.PageSetup.PrintArea = Range ("B5", ("rowindx, colindx")) I know there must be something wrong with the last line of code. WebJun 24, 2024 · It is true that the OP probably doesn't want the range to extend to the last row on the sheet. It is also possible that X is not the longest column on the sheet, in which case you would want to test each column to determine the sheet length. Hope this doesn't overcomplicate the matter, but sometimes the last column isn't the sheet length. lamparas fiat 147