LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Copy and Paste ranges between files

How do you copy cells from 1 workbook (File A) worksheet (sheet1) to another
workbook(File B) worksheet(sheet2)?

I have sucessfully written a working but not so elegant solution via
activating workbooks.

I am trying to write this without activating files in a loop as it is a less
efficient way of running things.

I am having difficulty wrapping my head around referecing ranges and
worksheets across multiple forms (with out activating).

workbooks("File A").worksheet("sheet1").range(cells(1,1), cells(1,11)).copy

vba returns so sort of application error.

Thanks in advance

R


 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
How can I copy big ranges of cells without drag or copy/paste? Ricardo Julio Excel Discussion (Misc queries) 3 March 23rd 10 02:38 PM
Macro to copy and paste over existing files Cam Excel Discussion (Misc queries) 1 July 1st 09 08:37 PM
use macros to copy and paste from 1 file to several files Joy Excel Worksheet Functions 0 March 5th 08 07:08 AM
Macro 4 copy & paste between 2 books/files FARAZ QURESHI Excel Discussion (Misc queries) 1 October 7th 07 06:41 PM
Copy and Paste Between Files Dragon Excel Discussion (Misc queries) 1 February 5th 07 04:26 AM


All times are GMT +1. The time now is 07:53 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"