SaveData เมื่อบันทึกเสร็จ ไม่อยากให้มันเช็ค เซลล์ ต้องตัดตัวไหนออกยังไงครับ
Posted: Wed Sep 20, 2023 8:46 am
If Range("Check1") = 0 Then
MsgBox ("Reccord No!!!!")
Exit Sub
MsgBox ("Reccord No!!!!")
Exit Sub
Code: Select all
Sub SaveData()
ThisWorkbook.Activate
If Range("Check1") = 0 Then
MsgBox ("Reccord No!!!!")
Exit Sub
Else
Application.ScreenUpdating = False
If Range("Check2") = 1 Then
MyVal2 = [Course_Input]
[Course_New] = MyVal2
End If
MyVal = [Input]
[Target] = MyVal
Application.Goto Reference:="Clear"
Selection.ClearContents
Range("G4").Select
Application.ScreenUpdating = True
MsgBox ("Data Saved")
End If
End Sub