Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
I am wondering how I would copy a specified range to a new workbook
using VBA. 1. Make the selection in the in and place the contents in the first workbook -- WB1 -- onto the clipboard. 2. Create / add a new workbook -- call this WB2. 3. Past the contents of the clipboard to WB2 If anyone has some code that I can look at it would be greatly appreciated as I can make this work with a new worksheet but and messing it up with the new workbook. Thanks for the help. ------------------------------------------------ ~~ Message posted from http://www.ExcelTip.com/ ~~ View and post usenet messages directly from http://www.ExcelForum.com/ |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Sub CopyRangeToNewBook()
Sheets("Sheet1").Range("a1:b2").Copy Workbooks.Add ActiveSheet.Paste End Sub -- Robin Hammond www.enhanceddatasystems.com Check out our XspandXL add-in "mmasters" wrote in message ... I am wondering how I would copy a specified range to a new workbook using VBA. 1. Make the selection in the in and place the contents in the first workbook -- WB1 -- onto the clipboard. 2. Create / add a new workbook -- call this WB2. 3. Past the contents of the clipboard to WB2 If anyone has some code that I can look at it would be greatly appreciated as I can make this work with a new worksheet but and messing it up with the new workbook. Thanks for the help. ------------------------------------------------ ~~ Message posted from http://www.ExcelTip.com/ ~~ View and post usenet messages directly from http://www.ExcelForum.com/ |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
How to copy a range of cells and paste into a new workbook in differentcolumns | Excel Discussion (Misc queries) | |||
Copy a Range from each workbook - Ron de Bruin VBA - a problem | Excel Worksheet Functions | |||
copy range from one workbook to other in C# | Excel Worksheet Functions | |||
How to use VLOOKUP to copy range to another workbook? | Excel Discussion (Misc queries) | |||
copy range of cells from one workbook to another | Excel Discussion (Misc queries) |