PC Review


Reply
Thread Tools Rate Thread

Copy destination

 
 
Francis Hookham
Guest
Posts: n/a
 
      17th Apr 2007
This does just what I want:

Sub TestTransfer()
Sheets("Pages").Cells(10, 5).Copy Destination:=Sheets("Schedule").Cells(5,
2)
Sheets("Pages").Cells(10, 3).Copy Destination:=Sheets("Schedule").Cells(5,
3)
End Sub

except it copies across the formatting and well as the contents.

I want contents only copied across.

Please - thanks.

Francis Hookham


 
Reply With Quote
 
 
 
 
Norman Jones
Guest
Posts: n/a
 
      17th Apr 2007
Hi Francis,

Try something like:

'=============>>
PublicSub TestTransfer()
With Sheets("Schedule")
.Cells(5, 2).Value = Sheets("Pages").Cells(10, 5).Value
.Cells(5, 3).Value = Sheets("Pages").Cells(10, 3).Value
End With
End Sub
'<<=============


---
Regards,
Norman


"Francis Hookham" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> This does just what I want:
>
> Sub TestTransfer()
> Sheets("Pages").Cells(10, 5).Copy Destination:=Sheets("Schedule").Cells(5,
> 2)
> Sheets("Pages").Cells(10, 3).Copy Destination:=Sheets("Schedule").Cells(5,
> 3)
> End Sub
>
> except it copies across the formatting and well as the contents.
>
> I want contents only copied across.
>
> Please - thanks.
>
> Francis Hookham
>



 
Reply With Quote
 
Don Guillett
Guest
Posts: n/a
 
      17th Apr 2007
Ranges must be the same size.

--
Don Guillett
SalesAid Software
(E-Mail Removed)
"Norman Jones" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> Hi Francis,
>
> Try something like:
>
> '=============>>
> PublicSub TestTransfer()
> With Sheets("Schedule")
> .Cells(5, 2).Value = Sheets("Pages").Cells(10, 5).Value
> .Cells(5, 3).Value = Sheets("Pages").Cells(10, 3).Value
> End With
> End Sub
> '<<=============
>
>
> ---
> Regards,
> Norman
>
>
> "Francis Hookham" <(E-Mail Removed)> wrote in message
> news:(E-Mail Removed)...
>> This does just what I want:
>>
>> Sub TestTransfer()
>> Sheets("Pages").Cells(10, 5).Copy
>> Destination:=Sheets("Schedule").Cells(5, 2)
>> Sheets("Pages").Cells(10, 3).Copy
>> Destination:=Sheets("Schedule").Cells(5, 3)
>> End Sub
>>
>> except it copies across the formatting and well as the contents.
>>
>> I want contents only copied across.
>>
>> Please - thanks.
>>
>> Francis Hookham
>>

>
>


 
Reply With Quote
 
Norman Jones
Guest
Posts: n/a
 
      17th Apr 2007
Hi Don,

> Ranges must be the same size.


Perhaps, in the context of my code, you could expand your comments?

By the way, did you try the code?


---
Regards,
Norman


 
Reply With Quote
 
Norman Jones
Guest
Posts: n/a
 
      17th Apr 2007
Hi Francis,

A slight typo!

Replace:

> PublicSub TestTransfer()


with

> Public Sub TestTransfer()


---
Regards,
Norman


 
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
Help with copy destination David Microsoft Excel Programming 3 26th Jul 2006 09:51 AM


Features
 

Advertising
 

Newsgroups
 


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