PC Review


Reply
Thread Tools Rate Thread

copy named range & paste

 
 
J.W. Aldridge
Guest
Posts: n/a
 
      8th Oct 2009
Based on cell value in r2, when prompted, I want to...

if value in r2 = "mon", copy named range "monq" and paste values &
formats in r8.
if value in r2 = "tue", copy named range "tueq" and paste values &
formats in r8.
if value in r2 = "wed", copy named range "wedq" and paste values &
formats in r8.
if value in r2= "thu", copy named range "thuq" and paste values &
formats in r8.
if value in r2 = "fri", copy named range "friq" and paste values &
formats in r8.
if value in r2 = "sat", copy named range "satq" and paste values &
formats in r8.
if value in r2 = "sun", copy named range "sunq" and paste values &
formats in r8.

The ranges reflect a pivot table. I do not want the actual pivot
table, just the data - that's why I want to copy the values and
formats only.
 
Reply With Quote
 
 
 
 
Patrick Molloy
Guest
Posts: n/a
 
      8th Oct 2009

Range( Range("r2").Value & "q" ).Copy
Range("r8").PasteSpecial xlPasteAll
Range("r8").PasteSpecial xlValues



"J.W. Aldridge" wrote:

> Based on cell value in r2, when prompted, I want to...
>
> if value in r2 = "mon", copy named range "monq" and paste values &
> formats in r8.
> if value in r2 = "tue", copy named range "tueq" and paste values &
> formats in r8.
> if value in r2 = "wed", copy named range "wedq" and paste values &
> formats in r8.
> if value in r2= "thu", copy named range "thuq" and paste values &
> formats in r8.
> if value in r2 = "fri", copy named range "friq" and paste values &
> formats in r8.
> if value in r2 = "sat", copy named range "satq" and paste values &
> formats in r8.
> if value in r2 = "sun", copy named range "sunq" and paste values &
> formats in r8.
>
> The ranges reflect a pivot table. I do not want the actual pivot
> table, just the data - that's why I want to copy the values and
> formats only.
>

 
Reply With Quote
 
J.W. Aldridge
Guest
Posts: n/a
 
      8th Oct 2009
Thanx....
Worked Purrrrrr-fectly!

 
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 named range & paste values J.W. Aldridge Microsoft Excel Programming 2 1st Mar 2010 09:59 PM
Named range row copy/paste problem John Microsoft Excel Programming 1 2nd Feb 2009 06:27 PM
Copy & Paste Named Range Contents BJ Microsoft Excel Programming 8 1st Aug 2008 07:18 PM
After Copy and Paste, Add to an Existing Named Range Aria Microsoft Excel Programming 4 8th Mar 2007 12:53 AM
Copy and Paste 2 columns from a named range? Simon Lloyd Microsoft Excel Programming 2 28th May 2006 08:10 PM


Features
 

Advertising
 

Newsgroups
 


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