VBA-ไม่สามารถเริ่มทำงานชีทใหม่ได้
Posted: Tue Mar 10, 2020 10:15 pm
เขียนโค้ดเพื่อเตรียมข้อมูลชีทแรกสำเร็จ แต่จะเริ่มเตรียมข้อมูลในชีทต่อไปไม่ได้
รบกวนช่วยดูโค้ดให้ด้วยครับ
รบกวนช่วยดูโค้ดให้ด้วยครับ
Code: Select all
With Range("P" & i).Validation
.Add Type:=xlValidateList, AlertStyle:=xlValidAlertStop, Operator:=xlBetween, Formula1:="Completed,Pending"
.IgnoreBlank = True
.InCellDropdown = True
.InputTitle = ""
.ErrorTitle = ""
.InputMessage = ""
.ErrorMessage = ""
.ShowInput = True
.ShowError = True
End With
Next i
Application.ScreenUpdating = True
Sheets("ARAP").Range("B2").End(xlDown).Select
End Sub