Created
February 21, 2018 10:22
-
-
Save DuongAQ/1f23ecef4c3d12c5605866d78cde1b88 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sub BayLoi_Test02() | |
Dim a As Long, b As Long | |
a = Sheet1.Cells(1, 1).Value | |
b = Sheet1.Cells(2, 1).Value | |
'Bỏ qua lỗi khi thực hiện phép chia | |
On Error Resume Next | |
Sheet1.Cells(3, 1).Value = a / b | |
MsgBox "ok!" | |
'Mở lại chức năng thông báo lỗi | |
On Error goto 0 | |
End Sub |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment