How to print selected columns together on one page in Excel?
By default, Excel divides multiple selected columns into separated pages while printing. If you want to print selected columns together on one page, what would you do? This article will show you methods to achieve it.
Print selected columns together with VBA code
Easily print selected columns together with an amazing tool
Print selected columns together with VBA code
You can print multiple selected columns together on one page with VBA code. Please do as follows.
1. Press Alt + F11 keys simultaneously to open the Microsoft Visual Basic for Application window.
2. In the Microsoft Visual Basic for Application window, click Insert > Module. And then copy and paste following VBA code into the Module window.
VBA code: Print selected columns together
Sub Print_MultiAreas()
Dim xRg As Range
Dim xSht As Worksheet
Dim xArea As Range
Dim xTxt As String
On Error Resume Next
xTxt = ActiveWindow.RangeSelection.Address
Set xRg = Application.InputBox("Please select columns:", "Kutools for Excel", xTxt, , , , , 8)
If xRg Is Nothing Then Exit Sub
Set xSht = Worksheets.Add(After: = Sheets(Sheets.Count))
For Each xArea In xRg.Areas
xArea.Copy Destination: = xSht.Range(xArea.Address)
xSht.Range(xArea.Address).Value = xArea.Value
Next
xSht.PrintPreview
'xSht.PrintOut Copies:=1, Collate:=True, IgnorePrintAreas:=False
Application.DisplayAlerts = False
xSht.Delete
Application.DisplayAlerts = True
xRg.Parent.Activate
End Sub
3. Press the F5 key to run the code. Then a Kutools for Excel dialog box pops up, please select the columns you need to print one by one with holding the Ctrl key. And finally click the OK button. See screenshot:
4. Then you will get a print preview window, click the Print button to start printing.
Note: If some of the selected columns are not in one page, in the preview window, you should click Next Page to view other selections. And they will be printed into separate pages as their own.
Easily print selected columns together with an amazing tool
If VBA code is hard for you to handle, you can try the Print Multiple Selection Wizard utility of Kutools for Excel. With this utility, you can easily print multiple selected columns together on one page with several clicks only.
Before applying Kutools for Excel, please download and install it firstly.
1. Select the columns one by one with holding the Ctrl key. Then click Kutools Plus > Printing > Print Multiple Selection Wizard.
2. In the Print Multiple Selections Wizard – Step 1 of 3 dialog box, all your selected columns are listed into the list box, please click the Finish button.
3. Then all selected columns are extracted as objects and placed on a blank worksheet (by default, all selected columns are placed in a column, you can arrange their positions as you need). Then start printing the worksheet.
Note: If you want to specify the print settings, please click the Next button in this step 1 of 3 dialog box, and then specify the settings as your need as below screenshot shown.
If you want to have a free trial (30-day) of this utility, please click to download it, and then go to apply the operation according above steps.
Best Office Productivity Tools
Supercharge Your Excel Skills with Kutools for Excel, and Experience Efficiency Like Never Before. Kutools for Excel Offers Over 300 Advanced Features to Boost Productivity and Save Time. Click Here to Get The Feature You Need The Most...
Office Tab Brings Tabbed interface to Office, and Make Your Work Much Easier
- Enable tabbed editing and reading in Word, Excel, PowerPoint, Publisher, Access, Visio and Project.
- Open and create multiple documents in new tabs of the same window, rather than in new windows.
- Increases your productivity by 50%, and reduces hundreds of mouse clicks for you every day!
