Robert Mika
MrExcel MVP
- Joined
- Jun 29, 2009
- Messages
- 7,256
What I'm trying to do is to find last value in column from which data are deliverd from formula.
Example
Column A has 20 rows with simple formula
=if(b1="","",b1)
....
...
....
=if(b20="","",b20)
The number of non blank cell can be difftrent each time and I woud like to copy only those which are non blank(by non-blank means they have value)
So far I got here:
but this copy all 20 rows not the one with values.
This bit:
does not work for what I'm trying to accomplish.
Example
Column A has 20 rows with simple formula
=if(b1="","",b1)
....
...
....
=if(b20="","",b20)
The number of non blank cell can be difftrent each time and I woud like to copy only those which are non blank(by non-blank means they have value)
So far I got here:
Code:
Range("a2").Select
Range("b2", Range("b2").End(xlDown)).Copy
Selection.PasteSpecial Paste:=xlPasteValues, Operation:=xlNone, SkipBlanks _
:=True, Transpose:=False
This bit:
Code:
SkipBlanks _
:=True
does not work for what I'm trying to accomplish.