Set Excel Environment

Here are a set of commands that you can use to set excel environment.
Sub TestRun() Call SetExcelEnvironment(True) End Sub Sub SetExcelEnvironment(blnShow As Boolean) With ActiveWindow .DisplayHeadings = blnShow 'Row Col Heading .DisplayWorkbookTabs = blnShow 'Sheet Tabs .DisplayHorizontalScrollBar = blnShow 'Horizontal Scrollbar .DisplayVerticalScrollBar = blnShow 'Vertical Scrollbar End With Application.DisplayFormulaBar = blnShow 'Formula Bar If Application.Version >= 12 Then Application.ExecuteExcel4Macro "SHOW.TOOLBAR(""Ribbon""," & blnShow & ")" 'Excel 2007 Ribbon End If End Sub
»
- Vishesh's blog
- Add new comment
- 1427 reads

Recent comments
6 hours 14 min ago
9 hours 37 min ago
10 hours 42 sec ago
16 hours 3 min ago
16 hours 55 min ago
1 day 7 hours ago
1 day 7 hours ago
1 day 11 hours ago
1 day 19 hours ago
2 days 14 hours ago