Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
William,
Thanks so much for the reply. The code worked alright except for a minor snag (inserting an extra blank line, which I managed to work around it). Have a great summer JP On Tue, 1 Jun 2004 03:55:43 +0100, "William" wrote: Hi JP Sub test() Dim r As Range, i As Long With Sheets("Sheet1") Set r = .Range(.Range("A2"), _ .Range("A" & Rows.Count).End(xlUp).Offset(0, 5)) i = r.Rows.Count End With With Sheets("Sheet2") .Range("A2:F" & i).Insert Shift:=xlDown .Range("A2:F" & i).Formula = r.Value2 End With End Sub |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Copying and inserting lines | Excel Worksheet Functions | |||
Copying row & inserting | Excel Discussion (Misc queries) | |||
Help with copying dynamic column selected based on remote cell value and dynamic formula fill | Charts and Charting in Excel | |||
Dynamic Range with unused formula messing up x axis on dynamic graph | Charts and Charting in Excel | |||
Inserting Lines And Copying Them | Excel Programming |