Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
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 |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Copy and move check box (check boxes) with new cell link? | Excel Worksheet Functions | |||
move excel files that have link between them | Excel Discussion (Misc queries) | |||
Documents move is generating link errors in Excel | Excel Discussion (Misc queries) | |||
Can I link/lock rows so they move together in a sort? | Excel Worksheet Functions | |||
How to move a large formula to another workbook but link it? | Excel Worksheet Functions |