Hi! I'm stuck creating a macro to copy a range containing formulas and then special paste just the created values into a new sheet.
I've run into a problem where the entire range is being copied but the "" values in the new sheet are being pasted and read as a value. So when I try to import the new sheet elsewhere the entire range is imported.
Is there a way to only copy the formula cells if there was an actual value not the formula result "" blank? Or possibly a different solution? Thank you!
VBA I'm using:
Example of information in the cell range being copied:
I've run into a problem where the entire range is being copied but the "" values in the new sheet are being pasted and read as a value. So when I try to import the new sheet elsewhere the entire range is imported.
Is there a way to only copy the formula cells if there was an actual value not the formula result "" blank? Or possibly a different solution? Thank you!
VBA I'm using:
VBA Code:
'Copy Range of Data'
Worksheets("Sheet1").Range("P2:V3500").Copy
'PasteSpecial Values Only'
Worksheets("Sheet2").Range("K2").PasteSpecial Paste:=xlPasteValues
Example of information in the cell range being copied:
Excel Formula:
=IF(ROUND(L4,1)=0,"",ROUND(L4,1))