PC Review


Reply
Thread Tools Rate Thread

Copy Destination parameter issue

 
 
Simon
Guest
Posts: n/a
 
      14th Aug 2008
MyWBRBS.Range("I65536").End(xlUp).Copy
Destination:=MyWBAccRep.Sheets("Volumes").Cells.Find("latest").ActiveCell..Offset(7,
0)

What is wrong with the above? It says Obeject doesn't support this
property or method.

I tried it without .ActiveCell but that doesn’t seem to be the issue.
I’ve have thought that after Destination:= You would need to specify
the workbook and sheet name to state where the data will be copied
to. I thought stating it where it is would be acceptable for the Find
method.



I have already defined (Dim) and Set and Opened the workbooks MyWBRBS
and MyWBAccRep. MyWBRBS only has one sheet, hence no requirement to
declare which sheet you are selecting from.

 
Reply With Quote
 
 
 
 
Gary''s Student
Guest
Posts: n/a
 
      14th Aug 2008
Is ActiveCell a valid reference for a workbook that is not the Active
workbook??

Try:

1. Activate the source workbook
2. get the source Range
3. get the address of the source range (addS)
4. Activate the destination workbook
5. get the destination range
6. get the address of the destination range (addD)

Book1.Range(addS).Copy Destination:=Book2.Range(addD)
--
Gary''s Student - gsnu2008k
 
Reply With Quote
 
Bob Phillips
Guest
Posts: n/a
 
      14th Aug 2008
It worked for me without Activecell

MyWBRBS.Range("I65536").End(xlUp).Copy _
Destination:=MyWBAccRep.Sheets("Volumes").Cells.Find("latest").Offset(7, 0)


--
__________________________________
HTH

Bob

"Simon" <(E-Mail Removed)> wrote in message
news:406b6542-4b25-46a9-821b-(E-Mail Removed)...
MyWBRBS.Range("I65536").End(xlUp).Copy
Destination:=MyWBAccRep.Sheets("Volumes").Cells.Find("latest").ActiveCell.Offset(7,
0)

What is wrong with the above? It says Obeject doesn't support this
property or method.

I tried it without .ActiveCell but that doesn’t seem to be the issue.
I’ve have thought that after Destination:= You would need to specify
the workbook and sheet name to state where the data will be copied
to. I thought stating it where it is would be acceptable for the Find
method.



I have already defined (Dim) and Set and Opened the workbooks MyWBRBS
and MyWBAccRep. MyWBRBS only has one sheet, hence no requirement to
declare which sheet you are selecting from.


 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Copy Destination Charles Microsoft Excel Programming 5 16th Feb 2010 06:50 PM
copy value only...Copy Destination:=Cells(3, 2) Fan924 Microsoft Excel Programming 3 11th Dec 2009 09:44 PM
Outlook 2003 Copy & Paste Strangeness - Destination Must be Open Prior to Copy antony01@theUpwards.net Microsoft Outlook 0 14th Mar 2007 05:34 AM
Outlook 2003 Copy & Paste Strangeness - Destination Must be Open Prior to Copy antony01@theUpwards.net Microsoft Outlook Discussion 0 14th Mar 2007 05:23 AM
Range.Copy only works with a named destination parameter? =?Utf-8?B?Y29saW5fZQ==?= Microsoft Excel Programming 5 17th Mar 2006 01:49 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 08:11 AM.