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


scripting in excelexcel macro windows activaterunning vba in excelremove blank cells in excel formulaconvert excel 2003 to 2013advanced excel charts tutorialexcel vba range &how to create stock chart in excelexcel vba redimcountifs function excel 2010vba update queryscheduler template excelexcel gantt chart template 2007sample vlookupexcel insert checkboxremove excel workbook passwordhow to find the duplicate rows in excelvba range rowsconsolidate data from multiple worksheetsvba insertsheet activate vbaexcel vba delete rowsvba code for excel examplesvbscript sql server connectiongenpact finance interview questionsexcel scheduling templaterecord macro powerpoint 2007macro formula in excelexcel cell mergefunction sumifvba combobox excelsql basics for beginnersunprotect excel 2007application.displayalertsexcel basics tutorialfso opentextfileunprotect password protected excel sheetlearning vlookup in excelexcel roadmap templateexcel remove hyperlinkssample vlookuphow to fuse cells in excelexcel vba worksheet changehow to unhide a column in excel 2007ms excel advanced tutorialaccess macro run queryarray functions vbaunhide excel rowexcel vba array functionsvba activate sheetvba columnwidthvba excel select rowexcel macro data validationvba insurancehow to calculate difference between two dates in excelexcel vba chartsaccess vba date formatvlookup duplicatesoffset excel vbahow to connect sql to excelexcel vba controlsexample of vlookup in excelduplicate values excelhow to automate excel macrohow to use excel match functionexcel checklist templatesunhide a row in excelexcel access vbasave xlsm as xlsxvba excel select casevb code to connect to sql databasemerge and centre excelvba active worksheetconcatenate in excel formulalistbox codevba coding exampleshow to create if statements in excelcells excel vbaunprotect sheet without passworddelete empty cells excelisnumber function in excelexcel forms comboboxmultiple pivot chartsexcel vba copy formula