#1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 70
Default Copy Range

I need to copy a range from one sheet to another and past values only.
This works but pastes formulas and all:
SourceRange.Copy DestRange

I need to paste values only but this doesn't work:
SourceRange.Copy DestRange.PasteSpecial(Paste:=xlPasteValues)

How do I do it?

Glen


  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 783
Default Copy Range

Glen Mettler wrote:
I need to copy a range from one sheet to another and past values only.
This works but pastes formulas and all:
SourceRange.Copy DestRange

I need to paste values only but this doesn't work:
SourceRange.Copy DestRange.PasteSpecial(Paste:=xlPasteValues)

How do I do it?

Glen


Range("A1:C3").Copy
Sheets("Sheet9").Range("M25").PasteSpecial Paste:=xlPasteValues

Alan Beban
  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default Copy Range

break it into two lines

SourceRange.

Copy DestRange.PasteSpecial Paste:=xlPasteValues

--
Regards,
Tom Ogilvy

"Glen Mettler" wrote in message
...
I need to copy a range from one sheet to another and past values only.
This works but pastes formulas and all:
SourceRange.Copy DestRange

I need to paste values only but this doesn't work:
SourceRange.Copy DestRange.PasteSpecial(Paste:=xlPasteValues)

How do I do it?

Glen




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
RANGE EXCEL copy cell that meets criteria in a range confused Excel Worksheet Functions 3 March 27th 08 01:41 PM
copy range and paste into every 3rd cell of new range thomsonpa New Users to Excel 4 December 3rd 07 01:47 PM
How do I copy formulas but using the same range each time I copy Laffin Excel Worksheet Functions 2 June 22nd 06 04:17 PM
Code to copy range vs Copy Entire Worksheet - can't figure it out Mike Taylor Excel Programming 1 April 15th 04 08:34 PM
Range COPY function - how to copy VALUES and not formulas James Cooke Excel Programming 1 August 21st 03 07:04 PM


All times are GMT +1. The time now is 02:07 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"