Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2
Default paste cells with reference

I am trying to programitically copy a group of cells that contain a
formula into another group of cells, i want the copied cells to keep
there reference when they are pasted. please note that i cant use $
signs since i am doing this programitically.

thanks!

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 44
Default paste cells with reference

Hello,

Did you try the following:

' let's say Range("A1:A20") is the set of cells with the formula you want
' and Range("D10:D18") is the set of cells to copy to.

Range("D10:D18").FormulaR1C1 = Range("A1:A20").FormulaR1C1

The FormulaR1C1 property preserves the relative locations.

Chad


" wrote:

I am trying to programitically copy a group of cells that contain a
formula into another group of cells, i want the copied cells to keep
there reference when they are pasted. please note that i cant use $
signs since i am doing this programitically.

thanks!


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
Formulas that reference cells that reference another cell Andrea Excel Discussion (Misc queries) 7 October 19th 06 08:14 AM
Paste Linking with Absolute Reference MikeDH Excel Discussion (Misc queries) 6 September 6th 06 06:37 PM
Cut and paste by reference part 2 Lunks Excel Programming 11 May 2nd 06 06:57 PM
Cut and paste by reference Lunks Excel Programming 0 April 25th 06 03:19 PM
Copy and Paste macro needs to paste to a changing cell reference loulou Excel Programming 0 February 24th 05 10:29 AM


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