* Đoạn code tự động thực hiện các mệnh lệnh khi mở file Excel :
Sub auto_open() On Error Resume Next Application.ScreenUpdating = False Application.DisplayAlerts = False
MsgBox "CHUC MOT NGAY LAM VIEC VUI VE !!! "
End Sub
* Đoạn code tự động thực hiện các mệnh lệnh trước khi đóng file Excel
Sub auto_CLOSE() On Error Resume Next
Application.ScreenUpdating = False Application.DisplayAlerts = False
MsgBox "Xin Chao va hen gap lai !!! "ActiveWorkbook.Save Application.ScreenUpdating = True Application.DisplayAlerts = True
End Sub
Home
VBA-EXCEL
VBA Excel - Đoạn code (auto_open và auto_CLOSE ) tự động thực hiện khi mở và đóng file Excel
Thứ Sáu, 1 tháng 4, 2016
VBA Excel - Đoạn code (auto_open và auto_CLOSE ) tự động thực hiện khi mở và đóng file Excel
Artikel Terkait
- Public Declare Function MessageBox Lib "user32.dll" Alias "MessageBoxW&qu
- Sub Create_Index() Dim wsSheet As Worksheet Dim ws As Worksheet Dim Counter As Long
- Public Function Chu(sotien) 'Function suu tam Dim tien, k, n As Integer Dim Nhom, S1, S2
- Public Function SuaNgay(NgayBatKy) ' Original Design 2002 If Not IsDate(NgayBatKy) Then
- Function CatTen(str As String) As String Dim mlen As Long Dim i As Long mlen = Len(s
- Public Function f_doikytu(chuoikytu1 As String, kytucu1 As String, kytumoi1 As String)
Đăng ký:
Đăng Nhận xét (Atom)
1 nhận xét so far
https://giaynhamdungtien.com/
EmoticonEmoticon