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


how to countif in excelshort cut key excelhow to remove activexexcel 3d surface chartexcel vlookup practiceddl queries in sql with examplespowerpoint donut chartcalculate duration between two dates excelvba insert multiple rowsexcel form vbaoffset function in vbaexcel vba alertsql statements in excelshortcut to close excel filewriting excel macrosvba copy sheetmsgbox vba exampleexcel vba input boxexcel dashboardingexcel add row shortcutremoving duplicates in excel 2003convert excel 2003 to 2013ms access vba message boxexcel copy worksheet vbalearn macro excelusage of vlookup in excelhighlight duplicates in excel 2007vlookup vba codeaverageif functionnaming a range in excelpivot table basicsmatch vbaexplain ddl and dmlvba checkbox checkedvlookup excel step by stepexcel vba close workbookexcel bar chart examplesexcel formulas examplevba sql querydim in excelvlookup function tutorialexcel vba recordsetvba create new workbookadodb.connection connection stringexcel vba selectionsas and sqlhow to append in excelexcel charpivot table tutorial excel 2007vba code samplesvba code to copy and pasteexcel vba active workbookhow to remove macros in exceldatevalue exceladvanced excel shortcut keysstop vbaif statement excel macrohow to de dupe in excellast cell excelprograming in exceldefinition of excel formulasexcel graph titlevba syntax guidehow do i check for duplicates in excelms project shortcut keysexcel formula chartms excel project management templatevba sampletechnical aptitude questions and answersexcel advanced tutorialapplication vba functionexcel vba scripting