arraysexcelvbavba7print-preview

How can i printpreview multiple excel sheets, with the names of the sheets located in a range?


Good day. I was trying to print preview multiple sheets using an array. I was trying to set an array to a range and using the print preview function that way. Unfortunately it did not work.

The thing i used below:

Dim MyArray As Variant
MyArray = ThisWorkbook.Sheets("Admin Sheet").Range("A1:A2")

'A1 is "Sheet 1" and A2 is "Sheet 2"

ThisWorkbook.Sheets(Array(MyArray)).PrintPreview


Solution

  • Print Preview Multiple Sheets

    Column

    Row

    Arrays