I'm pretty new to VBA, but I hope someone can help me. Here is what I would like to do;
- I have a range ("A4:C500") in Sheet1 that has some empty cells from eg. row 180
- I would like to copy that entire range to Sheet2
- Afterwards, if I insert a new row in Sheet 1 in eg. "A24:C24" and I fill eg "A24:C24" with values, I want to first insert an entire new row in "A24" in Sheet2 (same row as the new row in Sheet1) and move all existing cells 1 row down in Sheet2. The new row in Sheet2 should copy formulas from the row above (eg. row 24 should copy formulas from row 23)
- After the new row has been inserted in Sheet2, I would then like to copy values from Sheet1 "A24:C24" to Sheet2 "A24:C24"
Regarding 2. I have tried using some code like;
Sub Copy()
Ark1.Range("A4:C500").Copy
Ark2.Range("A4").Rows("1:1").Insert Shift:=xlDown
End Sub
and that basically takes care of 2.
How can I get 3. and 4. to work? Any ideas for me to try out?
Thanks in advance