R
Roman Lutkiewicz
Hi,
I am just fiddling with some basic VBA stuff. Could I use your assist please?
I am trying to copy a range from Cell A4 up to the last filled Cell -2 rows and then copy it below.
I came up with the Sub
Range("A4").Select
Range(Selection, Selection.End(xlDown)).Select
Range("A4:A29").Select
Application.CutCopyMode = False
Selection.Copy
Selection.End(xlDown).Select
Range("A30").Select
Selection.Insert Shift:=xlDown
But this is obviously incorrect as A29 is not always 2 rows up from the Selection.End.
Could anyone help with this??
Thanks
Roman
Submitted via EggHeadCafe
Using the LINQ Max Operator
http://www.eggheadcafe.com/tutorial...1714a20d4c36/using-the-linq-max-operator.aspx
I am just fiddling with some basic VBA stuff. Could I use your assist please?
I am trying to copy a range from Cell A4 up to the last filled Cell -2 rows and then copy it below.
I came up with the Sub
Range("A4").Select
Range(Selection, Selection.End(xlDown)).Select
Range("A4:A29").Select
Application.CutCopyMode = False
Selection.Copy
Selection.End(xlDown).Select
Range("A30").Select
Selection.Insert Shift:=xlDown
But this is obviously incorrect as A29 is not always 2 rows up from the Selection.End.
Could anyone help with this??
Thanks
Roman
Submitted via EggHeadCafe
Using the LINQ Max Operator
http://www.eggheadcafe.com/tutorial...1714a20d4c36/using-the-linq-max-operator.aspx