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 identify duplicate entries in excelexcel vbscript tutorialhow to merge rows in excelvba excel option buttonexcel vba copy range to another worksheetupdate sql database from excelvba forms controlsexcel vba sql querydatabase management system interview questions and answers pdfminute meetings templatetimevalue in excelmerge cell in excelexcel combine data from multiple sheetsdata control language dclinsert row macro excelapplication enableeventsvba excel saveasworksheets sheet1 rangevba cuthow to make vlookup in excel 2007macros in excel sheetvba word userformhow to work on pivot table in excel 2010vlookup false truehow to use choose function in excelexcel 2010 unhide columnshow to connect excel to sql serverexcel vba range variableexcel vba combobox control sourcebasic vba tutorialvba macro exceldim excel vbavba vlookup exampleexcel macro sql querycopy paste in vbafiledialog filterin vba codeproject charter template wordhow to add option button in excelexcel vba example codeexcel lookupsprotect workbook with passwordvlookup with if conditionvba logical operatorsdelete blank rows in excelworksheets in vbaexcel concatenate formulaclustered bar chart excelstacked line graph excelddl in dbmsindex formula in excel 2007create a worksheet in excelopendatabase vbaexcel formula shortcut keysexcel vba clear contentsinsert check box in excelsyntax of vlookupvba replace methoddml dcl ddlvba sheet cellsvba call functionvba unprotect all sheetsexit loop vbams access vba code examplescompound if statement in excelconditional statements in vbscriptexcel developer toolbarvb opentextfileunhide columns in excelhow to write an if statement in excelconcatenate function excelexcel 2007 vba pdfdelete sheet in excelvlookup ms excelexcel vba step by step tutorialms access adodb connectionwhat is countif function in excelbreak statement in vbamicrosoft excel macro examplesclear duplicates in excelvba range colorms excel developer tabsas tutorial pdf beginnersvba charts