PC Review


Reply
Thread Tools Rate Thread

copy value only...Copy Destination:=Cells(3, 2)

 
 
Fan924
Guest
Posts: n/a
 
      10th Dec 2009
Can this formula be modified to copy the value only?
Range(Cells(500 - SizeX, 3), Cells(500, 3)).Copy Destination:=Cells(3,
2)

I am attempting go avoid using this code...
Selection.Copy
Range("B3").Select
ActiveSheet.Paste
Selection.PasteSpecial Paste:=xlValues, Operation:=xlNone,
SkipBlanks:= _
False, Transpose:=False

Thanks
 
Reply With Quote
 
 
 
 
marcus
Guest
Posts: n/a
 
      10th Dec 2009
Hi

To do what you want to do you need to split it over 2 lines.
Certainly more efficiten than your second example.

take care

Marcus

Range(Cells(500 - sizex, 3), Cells(500, 3)).Copy
Cells(3, 2).PasteSpecial xlPasteValues
 
Reply With Quote
 
Dave Peterson
Guest
Posts: n/a
 
      10th Dec 2009
Another way is to just assign the values:

With activesheet 'I like qualifying my ranges!
with .Range(.Cells(500 - SizeX, 3), .Cells(500, 3))
.Cells(3,2).resize(.rows.count,.columns.count).value = .value
end with
end with



Fan924 wrote:
>
> Can this formula be modified to copy the value only?
> Range(Cells(500 - SizeX, 3), Cells(500, 3)).Copy Destination:=Cells(3,
> 2)
>
> I am attempting go avoid using this code...
> Selection.Copy
> Range("B3").Select
> ActiveSheet.Paste
> Selection.PasteSpecial Paste:=xlValues, Operation:=xlNone,
> SkipBlanks:= _
> False, Transpose:=False
>
> Thanks


--

Dave Peterson
 
Reply With Quote
 
Fan924
Guest
Posts: n/a
 
      11th Dec 2009
Thanks Marcus & Dave
 
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 Source Cells to Destination Cells Only when a Change Occurs excel student Microsoft Excel Misc 2 13th Jul 2008 04:13 AM
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
formulas do not copy to destination cells, but as existing totals =?Utf-8?B?bGlua3k=?= Microsoft Excel Worksheet Functions 1 12th Oct 2006 02:40 PM
Copy/Paste how to avoid the copy of formula cells w/o calc values =?Utf-8?B?RGVubmlz?= Microsoft Excel Misc 10 2nd Mar 2006 10:47 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 06:01 PM.