ducdinh1987
Thành viên thường trực
- Tham gia
- 10/6/10
- Bài viết
- 266
- Được thích
- 75
- Nghề nghiệp
- Kỹ sư công nghệ sinh học
em mở file excel lên với code VBA như sau:
Sub auto_open()
Application.DisplayFullScreen = True
ActiveWindow.DisplayWorkbookTabs = False
ActiveWindow.DisplayHorizontalScrollBar = False
ActiveWindow.DisplayVerticalScrollBar = False
Dim Cbar As CommandBar
For Each Cbar In Application.CommandBars
Cbar.Enabled = False
Next
End Sub
Sub auto_Close()
Application.DisplayFullScreen = False
Application.CommandBars("Worksheet Menu Bar").Enabled = True
ActiveWindow.DisplayWorkbookTabs = False
ActiveWindow.DisplayHorizontalScrollBar = True
ActiveWindow.DisplayVerticalScrollBar = True
Dim Cbar As CommandBar
For Each Cbar In Application.CommandBars
Cbar.Enabled = True
ThisWorkbook.close false
Next
End Sub
sau khi tắt nó không hiện thanh toolbars như ban đầu.
cảm ơn anh chị
Sub auto_open()
Application.DisplayFullScreen = True
ActiveWindow.DisplayWorkbookTabs = False
ActiveWindow.DisplayHorizontalScrollBar = False
ActiveWindow.DisplayVerticalScrollBar = False
Dim Cbar As CommandBar
For Each Cbar In Application.CommandBars
Cbar.Enabled = False
Next
End Sub
Sub auto_Close()
Application.DisplayFullScreen = False
Application.CommandBars("Worksheet Menu Bar").Enabled = True
ActiveWindow.DisplayWorkbookTabs = False
ActiveWindow.DisplayHorizontalScrollBar = True
ActiveWindow.DisplayVerticalScrollBar = True
Dim Cbar As CommandBar
For Each Cbar In Application.CommandBars
Cbar.Enabled = True
ThisWorkbook.close false
Next
End Sub
sau khi tắt nó không hiện thanh toolbars như ban đầu.
cảm ơn anh chị