Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

Excel VBA Copying a range from another workbook and pasting into the current

Posted on 2013-11-20
2
Medium Priority
?
372 Views
Last Modified: 2013-11-20
Hi

Does anyone have an example of copying a range from another workbook and pasting it into the current workbook?
0
Comment
Question by:Murray Brown
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 19

Accepted Solution

by:
Richard Daneke earned 2000 total points
ID: 39662225
Two files attached.  The CopyRange macro is in the Book1.xlsm workbook.  It copies a range from Book2.xlsx

Note:  2007 and newer Excel files with macros must be saved as Excel Macro-enabled or Excel will delete any macros contained in that file.
Book2.xlsx
Book1.xlsm
0
 

Author Closing Comment

by:Murray Brown
ID: 39662227
Thanks very much
0

Featured Post

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Some code to ensure data integrity when using macros within Excel. Also included code that helps secure your data within an Excel workbook.
This article describes how you can use Custom Document Properties to store settings and other information in your workbook so that they will be available the next time you open the workbook.
This Micro Tutorial will demonstrate in Microsoft Excel how to add style and sexy appeal to horizontal bar charts.
This Micro Tutorial will demonstrate how to create pivot charts out of a data set. I also added a drop-down menu which allows to choose from different categories in the data set and the chart will automatically update.

721 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question