DisplayScrollBars Property of Application Object VBA

DisplayScrollBars Application Property in VBA is used to either stop or display the scroll bar for all workbooks. It has Boolean value either True or False. If the value is Tue, it displays the scroll bar for all workbooks. If the value is False, it stops display the scroll bar for all workbooks. Please find the syntax and examples on DisplayScrollBars property of application object in the following section.

PREMIUM TEMPLATES LIMITED TIME OFFER

ON SALE80% OFF

50+ Project Management Templates Pack
Excel PowerPoint Word

Advanced Project Plan & Portfolio Template
Excel Template

Business Presentations Templates Pack
PowerPoint Slides

20+ Excel Project Management Pack
Excel Templates

20+ PowerPoint Project Management Pack
PowerPoint Templates

10+ MS Word Project Management Pack
Word Templates


VBA DisplayScrollBars Application Property – Syntax

Here syntax for DisplayScrollBars Property of application object in VBA.

Application. DisplayScrollBars

Where DisplayScrollBars as String.
In the above syntax Application represents object and DisplayScrollBars is the Property of Application object.

VBA DisplayScrollBars Application Property: Example 1

Please find the below example for DisplayScrollBars Property of application object in excel VBA. The below example doesn’t displays the scrollbar for all workbooks.

Sub Appl_Display_ScrlBar_Ex1()
'DisplayScrollBars is the property of application object
Application.DisplayScrollBars = False
End Sub

VBA DisplayScrollBars Application Property: Example 2

Please find the below example for DisplayScrollBars Property of application object in excel VBA. The below example displays the scrollbar for all workbooks.

Sub Appl_Display_ScrlBar_Ex2()
'DisplayScrollBars is the property of application object
Application.DisplayScrollBars = True
End Sub

VBA DisplayScrollBars Application Property – Instructions

Please follow the below steps to execute the VBA code to save the excel file.
Step 1: Open any existing Excel Application.
Step 2: Press Alt+F11 – This will open the VBA editor window.
Step 3: Insert a code module from then insert menu.
Step 4: Copy the above code and paste in the code module which have inserted in the above step.
Step 5: Now press F5 to execute the code.
Step 6: Notice the above macro results on the Worksheet for better understand.

LIMITED TIME OFFER

Leave A Comment


Related pages


copy worksheet vbauserform listboxvba for excel bookcountif function in excel examplevba delete sheetms excel vlookupcolor code vbaexcel userformmultiselectionvisual basic editor in excel 2007variables in vbaexcel formulas shortcuts keyexcel vba merge cellsmessagebox usingexcel averageiftask management spreadsheet templatemulti column listbox vbavba check if folder existsproject analysis template excelinstr in excelvlookup excel example 2010vba & operatorvba range clearexcel syntaxvb program for calculatorformula for vlookup in excelexcel macro dialog boxmysql dsn connection stringexcel autorun macrosql excel vbaopen excel from access vbamacros in excel tutorialglobal variable vbaexcel unprotect macroclose excel workbook vbain excel vlookup formula examplevisual dashboardsautofilter macroexcel 2010 match functionprotect a worksheetshort cut key excelvba excel remove duplicatesproject planning gantt chart excelsumif excel formulavba workbookvlookup for dummies tutorialidentify duplicates excelvba custom message boxlock selected cells in excel 2007simple macro program in excelvba instringhow to protect formulas in excel 2007sql dml statementsrefresh excel sheetexcel unhide all rowspassword protecting excel spreadsheetsexcel delete rowsvlookup ms excelexcel vba database queryuserforms in excelvb6 msgboxexcel vba range resizeadvanced excel dashboardsaccess vba runsqlhow do you merge cells in excelexcel test for beginnersmacro programming in excelexcel vba returnvba odbc connection stringexcel userform codeexcel formula explaineduse of sumif