Caption Property of Application Object VBA

Caption Application Property in VBA represents the name of the title bar that appears in the main Excel widow. If you don’t mention title bar, it displays as “Microsoft Excel”.



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 Caption Application Property – Syntax

Here syntax for Caption Property of application object in VBA.

Application. Caption

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

VBA Caption Application Property: Example 1

Please find the below example for Caption Property of application object in excel VBA. The below macro displays the caption in the title bar.

Sub Appl_StatusBar()
‘It represents the caption message 
Application.Caption = "Demo of"
End Sub

VBA Caption 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.
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 and find the caption in the title bar window.


Leave A Comment

Related pages

ms excel iserrorvba hide sheetvba backcolorhow to insert many rows in excelsql dml commands with exampleslast cell excelexcel macros basicsproject task tracker excelsql dml commandsvba filedialog filtermacro for vlookupactivate a workbookexcel tutorial charts and graphspv table excelhow to change the width of a cell in excelusing concatenate in excelexcel vbstutorial on excel pivot tablesexcell find duplicatesvba listbox additemexcel lookup formulaexcel macro range cellsformula hlookupsample project timeline excelhow to use countif function in excel 2007vba form loadsql interview questions and answers pdf for experiencedcopy excel sheet to another filevisual basic trim functionvba sql query excelexcel multiple if statementhow to unprotect an excel spreadsheetmaking excel macrosmicrosoft excel codinghow to merge and center cells in excelcombobox vba codevba excel file openformula for vlookup in excelqtp basics pptvba comment codevba change font sizetranspose vbaexcel forms comboboxagenda excel templateshortcut key to change sheet in excelduplicate rows excelhow to change cell width in excelexcel vba formatunlock a protected excel sheettcl commandshighlighting duplicates in excel 2010excel formula iferrorhow to unhide multiple columns in excelaccess close form vbaif functions excel 2013dcl queriesnested if functions excel 2010sql query in vbaproject management plan excel templatesimple vlookup exampleexcel vba undois not blank excelhow to unprotect excel cellsdeleting duplicates excelexample of vlookup formulaexcel vba range addressadvanced excel 2010 tutorial pdfvb sample programs beginnersvba excel insert rowexcel macro valuevba sub procedureleft string vba