Tip: Other languages are Google-Translated. You can visit the English version of this link.
Log in
x
or
x
x
Register
x

or

How to copy a selected range to a new workbook in Excel?

For copying or exporting a selected range to a new workbook, normally, you may copy the range firstly, create a new workbook, and then paste the selected range to that new workbook, finally save this workbook manually. In this tutorial, we will show you time-saving methods of copying a selected range to a new workbook in Excel with details.

Copy a selected range to a new workbook with VBA code

Copy a selected range to a new workbook with Kutools for Excel


arrow blue right bubble Copy a selected range to a new workbook with VBA code


You can easily copy a selected range to a new workbook with VBA code. Please do as follows.

1. Select the range you need to copy to a new workbook.

2. Press Alt + F11 keys simultaneously to open the Microsoft Visual Basic Application window.

3. In the Microsoft Visual Basic Application window, click Insert > Module. Then copy and paste the below VBA code into the Module window.

VBA code: copy selected range to a new workbook

Sub AddNew()
	Dim xWs As Worksheet
	Dim Rng As Range
	Set Rng = Application.Selection
	Application.Workbooks.Add
	Set xWs = Application.ActiveSheet
	Rng.Copy Destination: = xWs.Range("A1")
End Sub

Note: In the code, A1 is the destination cell for locating the selected range content of the new workbook. You can change it based on your needs.

3. Press the F5 key to run the code.

4. Then a new workbook is created with your selected range content listed inside, please save this workbook manually.


arrow blue right bubble Copy a selected range to a new workbook with Kutools for Excel

In this section, we will introduce you the Export Range to File utility of Kutools for Excel. With this utility, you can easily export selected range to a new workbook.

1. Select the range you want to copy to new workbook, then click Enterprise > Import / Export > Export Range to File. See screenshot:

2. In the Export Range to File dialog box, select the Excel workbook option in the File format section, click the button to select a folder for saving the new file, and finally click the OK button. See screenshot:

Notes:

1. If you want to convert all formulas in selected range to values in the new workbook, please check the Convert formulas to values box in the Workbook options section; and the Preserve formatting, preserve row heights and preserve column widths options can help to keep all formatting, row heights and column widths of selected rang in the new workbook.

2. Check the Open the file after exporting option, the new workbook with the selected range content will open directly after exporting.

3. And then a prompt box will pop out to remind you typing a file name for your new workbook, see screenshot:

4. Then click Ok button, the new workbook will be created and saved into the folder you specified. 

  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.


Kutools for Excel Solves Most of Your Problems, and Increases Your Productivity by 80%

  • Reuse: Quickly insert complex formulas, charts and anything that you have used before; Encrypt Cells with password; Create Mailing List and send emails...
  • Super Formula Bar (easily edit multiple lines of text and formula); Reading Layout (easily read and edit large numbers of cells); Paste to Filtered Range...
  • Merge Cells/Rows/Columns without losing Data; Split Cells Content; Combine Duplicate Rows/Columns... Prevent Duplicate Cells; Compare Ranges...
  • Select Duplicate or Unique Rows; Select Blank Rows (all cells are empty); Super Find and Fuzzy Find in Many Workbooks; Random Select...
  • Exact Copy Multiple Cells without changing formula reference; Auto Create References to Multiple Sheets; Insert Bullets, Check Boxes and more...
  • Extract Text, Add Text, Remove by Position, Remove Space; Create and Print Paging Subtotals; Convert Between Cells Content and Comments...
  • Super Filter (save and apply filter schemes to other sheets); Advanced Sort by month/week/day, frequency and more; Special Filter by bold, italic...
  • Combine Workbooks and WorkSheets; Merge Tables based on key columns; Split Data into Multiple Sheets; Batch Convert xls, xlsx and PDF...
  • More than 300 powerful features. Supports Office/Excel 2007-2019 and 365. Supports all languages. Easy deploying in your enterprise or organization. Full features 30-day free trial.
kte tab 201905

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!
officetab bottom
Say something here...
symbols left.
You are guest ( Sign Up? )
or post as a guest, but your post won't be published automatically.
Loading comment... The comment will be refreshed after 00:00.
  • To post as a guest, your comment is unpublished.
    Quentin · 2 months ago
    Bonjour,

    Comment faire pour faire pareil mais avec le collage seulement des valeurs, svp ?

    Bien à vous
  • To post as a guest, your comment is unpublished.
    Joe · 1 years ago
    Muchas gracias por la ayuda. Funciona al 100%