Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 33
Default Copying range to other workbook

Why doesn't the following code work (subscript out of range):

Workbooks("Book3").Sheets("Sheet1").Range("Copied" ).Value =
Workbooks("Book3").Sheets("Sheet1").Range("Origina l").Value

The defined ranges are only 5 celles (a1:a5)
Actually I want to transfer a large range (with only numbers) from one
workbook to the other.

Thanks for replying,
Jan Bart
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 4,391
Default Copying range to other workbook

Excelerate,
Sure you have a Workbook called "Book3" open with a Sheet called "Sheet1" ?

NickHK

"Excelerate-nl" wrote in message
...
Why doesn't the following code work (subscript out of range):

Workbooks("Book3").Sheets("Sheet1").Range("Copied" ).Value =
Workbooks("Book3").Sheets("Sheet1").Range("Origina l").Value

The defined ranges are only 5 celles (a1:a5)
Actually I want to transfer a large range (with only numbers) from one
workbook to the other.

Thanks for replying,
Jan Bart



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 33
Default Copying range to other workbook

Yes I am sure

"NickHK" wrote:

Excelerate,
Sure you have a Workbook called "Book3" open with a Sheet called "Sheet1" ?

NickHK

"Excelerate-nl" wrote in message
...
Why doesn't the following code work (subscript out of range):

Workbooks("Book3").Sheets("Sheet1").Range("Copied" ).Value =
Workbooks("Book3").Sheets("Sheet1").Range("Origina l").Value

The defined ranges are only 5 celles (a1:a5)
Actually I want to transfer a large range (with only numbers) from one
workbook to the other.

Thanks for replying,
Jan Bart




  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 4,391
Default Copying range to other workbook

Excelerate,
Well I cannot get a "Subscript out of range" otherwise with that line of
code.
Some other is causing the error ?

NickHK

"Excelerate-nl" wrote in message
...
Yes I am sure

"NickHK" wrote:

Excelerate,
Sure you have a Workbook called "Book3" open with a Sheet called

"Sheet1" ?

NickHK

"Excelerate-nl" wrote in

message
...
Why doesn't the following code work (subscript out of range):

Workbooks("Book3").Sheets("Sheet1").Range("Copied" ).Value =
Workbooks("Book3").Sheets("Sheet1").Range("Origina l").Value

The defined ranges are only 5 celles (a1:a5)
Actually I want to transfer a large range (with only numbers) from one
workbook to the other.

Thanks for replying,
Jan Bart






Reply
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
copying workbook formating to a differnent workbook Roger Excel Worksheet Functions 0 October 30th 09 05:27 PM
Copying A Worksheet From Each Open Workbook to an new Workbook carl Excel Worksheet Functions 1 January 3rd 06 05:37 PM
Problem copying a range to a different workbook [email protected] Excel Programming 3 December 8th 04 01:43 AM
Searching a range and copying values into a new range.... **Please help** :( Lancia Excel Programming 1 September 29th 04 01:08 PM
Copying a Filtered Range from a Sheet in another Workbook Frederick Excel Programming 2 August 10th 03 03:29 PM


All times are GMT +1. The time now is 02:54 AM.

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"