Hi
I'm copying Ranges using VBA or even manually and even if the result of a formula in the range is "" when pasted it shows up in the COUNT When I select the Column.
Only way to stop it showing in the Count is Filter the Column for Blanks, select them all and press delete
e.g.
Cell B2 is a, Cell B3 is b, Cell B4 is = =IF(B2="a","",B2)
When I highlight Column B the Count is 3 which is fine 2 values and a formula
However when I copy B2:B4 and Paste as Values in D2, when I highlight Colum D the count is still 3 even though Cell D4 shows as a blank when you select it. If I click on D4 and Press delete it shows as 2.
So when I copy Paste the Blank which is the result of a formula how can I paste so that it wont show up in a count when column is Selected
Code used in example above
Thanks
I'm copying Ranges using VBA or even manually and even if the result of a formula in the range is "" when pasted it shows up in the COUNT When I select the Column.
Only way to stop it showing in the Count is Filter the Column for Blanks, select them all and press delete
e.g.
Cell B2 is a, Cell B3 is b, Cell B4 is = =IF(B2="a","",B2)
When I highlight Column B the Count is 3 which is fine 2 values and a formula
However when I copy B2:B4 and Paste as Values in D2, when I highlight Colum D the count is still 3 even though Cell D4 shows as a blank when you select it. If I click on D4 and Press delete it shows as 2.
So when I copy Paste the Blank which is the result of a formula how can I paste so that it wont show up in a count when column is Selected
Code used in example above
VBA Code:
Range("B2:B4").Copy
Range("D2").PasteSpecial Paste:=xlPasteValues
Thanks