Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 81
Default Move and Link

In Sheet 1 copy range A4:H4. In Sheet 2 paste A4:H4 into cell B5. Next link
cell B4 in Sheet 2 to cell AK4 in Sheet1. Afterwards return to Sheet 1 copy
range A5:H5. In Sheet 2 paste A5:H5 into cell B7. Next link cell B6 in
Sheet 2 to cell AK5 in Sheet1. Repeat the pattern until every cell in range
A4:H200 has been covered. Here is what I have so far.

Sub Moveandlink()
Application.Goto Reference:="R4C1:R4C8"
Selection.Copy
Sheets("Sheet 2").Select
Range("B5").Select
ActiveSheet.Paste
Range("B4").Select
Application.CutCopyMode = False
ActiveCell.FormulaR1C1 = "='Sheet 1'!RC[35]"
Range("B5").Select
Sheets("Sheet 1").Select
Application.Goto Reference:="R5C1:R5C8"
Selection.Copy
Sheets("Sheet 2").Select
Range("B7").Select
ActiveSheet.Paste
Range("B6").Select
Application.CutCopyMode = False
ActiveCell.FormulaR1C1 = "='Sheet 1'!R[-1]C[35]"
Range("B7").Select
End Sub

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
Copy and move check box (check boxes) with new cell link? Marty Excel Worksheet Functions 1 January 20th 10 07:43 PM
move excel files that have link between them yuval Excel Discussion (Misc queries) 0 January 19th 09 09:01 PM
Documents move is generating link errors in Excel rtlemurs Excel Discussion (Misc queries) 0 June 25th 08 08:36 PM
Can I link/lock rows so they move together in a sort? dla80 Excel Worksheet Functions 1 January 21st 08 03:02 PM
How to move a large formula to another workbook but link it? Dan the Man[_2_] Excel Worksheet Functions 2 August 4th 07 05:44 PM


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