Goto Method of Application Object VBA

Goto Application Method in VBA is used to select any range on a worksheet or select any visual basic procedure in any workbook. If that specified workbook is not active, then it activates that workbook. Please find the syntax and examples of Goto Application Method in VBA.



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 Goto Application Method – Syntax

Here syntax for Goto method of application object in VBA.

Application. Goto (

[Reference], [Scroll])

Reference: It is an Optional parameter. It specifies the destination. If you don’t specify this argument, the destination will be last used range.
Scroll: It is an Optional parameter. It has Boolean value either True or False. If the value is true then it will scroll through the window. If it is False then it won’t scroll through the window.
In the above syntax Application represents object and Goto is the method of Application.

VBA Goto Application Method: Example 1

Please find the below example for Goto method of application object in excel VBA. The below procedure select a cell ‘A250’ on the worksheet named Sheet1. And in the below statement mentioned ‘Scroll:=True’ it scrolls through the worksheet.

Sub Appl_Goto()
Application.Goto Reference:=Worksheets("Sheet1").Range("A200"), Scroll:=True
End Sub

VBA Goto Application Method – 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 6: Now press F5 to execute the code and check how the Goto method is working in Worksheet.



  1. Pawan Yadav December 24, 2015 at 9:36 AM - Reply

    Very Good Explanation.
    In addition you can also refer to any macro:

    Code: Application.Goto “Macro1”

    • Sabby March 22, 2016 at 1:48 PM - Reply

      I have a value in range of column ‘H’ which is the reference to the cell where the goto should apply, could you please help me with the VBA code where the goto takes the value from the active cell.

      Any help is appreciated

    • sai March 9, 2017 at 6:47 PM - Reply

      Hi Pawan Yadav,

      Could you please explain more about your code, please…

Leave A Comment

Related pages

excel formula to remove duplicatesexcel 2010 how to merge cellsexcel interactive tutorialunhide column in excelexcel sort column alphabeticallytricky interview questions and answers for freshersvba userform textboxapplication filedialogformat vbaexcel kpi dashboard examplesunlock protected excel spreadsheetexcel dashboard designsvba code to import text file into excelunlock password protected excelsumifs vbahow to create defined names in excelclose workbook vbabasic excel shortcutsvba excel tutorial pdfms access macros tutorialnew adodb connection vbaexcel password protected file forgot passwordvba tutorialscheckboxes in excel 2010unprotect excel sheet onlinesumif excelexcel vba array functionsvba textbox eventsxml to xlsx converterexcel vba pivot table filterhot to merge cells in exceldefinition of vlookup in excelhow to find and delete duplicates in excelusedrange excelexcel formulas valuehow to duplicate a row in exceldatevalue vbavba code to open excel filehow to use trim function in excelvba variablesmicrosoft excel tutorial torrentsas & sqlvba variantmacro password removerexcel formulas and functions for dummiesvba excel columnsinserting a macro in excelaccess vba delete recordexcel dashboard pluginexcel macro developerexcel deleting duplicate rowshow to delete macrossample pivot tablesms excel sortingvba worksheet cellsexcel vba end of columnrows excel vbamicrosoft excel construction schedulevlookup function examplesheet tab in excelhow to run macros in excelexcel shortcut formulasinsert rows excel shortcutexcel example sumifproject charter pptvba add hyperlinkexcel isemptyvba pop up windowexcel 3d plotunhide cellsdelete duplicate row in excelcopy and paste vbaexcel 2010 nested if statementshow do you do a tick on excelsample excel data for pivot tablesum if condition in excelvba if then else example