niladri20052006
Board Regular
- Joined
- Dec 3, 2010
- Messages
- 121
Hi All,
I have 2024 data in an shhet1. But some data are marked as 2 in Column A and some data as 1. for Example in A1 it is 2 then starts with all other info in B1, C1...and so on and in A2 1 then starts with other info
I want the the same data where it is marked as 2. for example if in cell A1 the data is marked as 2, then it will copy the data and paste under it. I want the same data for 2 times and 1 will be remain unchanged..
i tried a code the following one but it not working
i can understand the code has copied rows 2 data and pasted under it. my question is that will have to write it again and again?
Please suuggest
I have 2024 data in an shhet1. But some data are marked as 2 in Column A and some data as 1. for Example in A1 it is 2 then starts with all other info in B1, C1...and so on and in A2 1 then starts with other info
I want the the same data where it is marked as 2. for example if in cell A1 the data is marked as 2, then it will copy the data and paste under it. I want the same data for 2 times and 1 will be remain unchanged..
i tried a code the following one but it not working
Code:
Range("A1").Select
Sheets("Sheet1").Select
Rows("2:2").Select
Selection.Copy
Rows("3:3").Select
Selection.Insert Shift:=xlDown
Application.CutCopyMode = False
ActiveWorkbook.Save
i can understand the code has copied rows 2 data and pasted under it. my question is that will have to write it again and again?
Please suuggest
Last edited by a moderator: