Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
hi,
I have the following code which merges cells... but before merging, i am taking 3 rows from sheet2 , copying it and putting it into my FTP sheet .. but it throws error.. can any1 help me in the section "inserting 3 rows".. merging is happening fine.. all i need is taht the 3 rows should be added dynamically before merging... pls help in rectifying i have given portion of teh entire code here For i1 = 3 To e If (ps < Range("C" & i1)) Then '' 'insertion 3 rows Sheets("Sheet2").Select Rows("1:3").Select Selection.Copy Sheets("FTP").Select Range("E" & i1).Select Selection.Insert Shift:=xlDown ActiveWindow.ActivateNext '' 'end of insertion of three rows Range("B" & st & ":B" & i1 - 1).merge Range("A" & st & ":A" & i1 - 1).merge Range("C" & st & ":C" & i1 - 1).merge ps = Range("C" & i1) st = i1 ElseIf (ps = Range("C" & i1) And i1 < 3) Then Range("A" & i1) = "" Range("B" & i1) = "" Range("C" & i1) = "" 'Range("D" & i1) = "" End If Next i1 |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
aconcat UDF throwing a #NAME error | Excel Worksheet Functions | |||
Copy and paste versus copy and insert copied cells | New Users to Excel | |||
How to insert code | Excel Discussion (Misc queries) | |||
Throwing Out top & lower percentages | Excel Worksheet Functions | |||
Insert Code | New Users to Excel |