RiaMelissaJaravata
Member
Hi,
I don't know why this always return "Type Mismatch" error. I just used the IfError function because I have #DIV/0! in the cell I want to copy and I just wana #DIV/0! to just show "0"
Here is my code:
ThisWorkbook.Sheets("Sheet1").Range("E5").Value = WorksheetFunction.IfError(Round(ThisWorkbook.Sheets("Sheet2").Range("J22").Value, 0), "0")
I hope you can help me. Thank you!
I don't know why this always return "Type Mismatch" error. I just used the IfError function because I have #DIV/0! in the cell I want to copy and I just wana #DIV/0! to just show "0"
Here is my code:
ThisWorkbook.Sheets("Sheet1").Range("E5").Value = WorksheetFunction.IfError(Round(ThisWorkbook.Sheets("Sheet2").Range("J22").Value, 0), "0")
I hope you can help me. Thank you!