daseffects
Technical User
Say I have a range of values that has various data based on user inputs of a model
Sheet1 =
Test1 1 2 3
Test2 0 0 0
Test3 -3 -2 -1
I'm currently copying this over with
Sheets("sheet1"
.Range("a1"
.Resise(3,4) = Sheets("sheet2"
.Range("a1:d3"
.value
What I would like to do is only copy the rows that have any data in them (positive or negative values) so that the pasted range would like this
Sheet2
Test1 1 2 3
Test3 -3 -2 -1
I'm assuming it would have to be sum sort of conditional loop. If sum row1 <>0,then copy. But that sort of code is a bit beyond my current skill level.
DAS
Sheet1 =
Test1 1 2 3
Test2 0 0 0
Test3 -3 -2 -1
I'm currently copying this over with
Sheets("sheet1"
What I would like to do is only copy the rows that have any data in them (positive or negative values) so that the pasted range would like this
Sheet2
Test1 1 2 3
Test3 -3 -2 -1
I'm assuming it would have to be sum sort of conditional loop. If sum row1 <>0,then copy. But that sort of code is a bit beyond my current skill level.
DAS