RejectAllChanges Method of Workbook Object VBA

RejectAllChanges Workbook method in VBA is used to rejects all changes in the specified or mentioned shared workbook. Shared workbook can have more than one user to edit, delete or change to the workbook.



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

Why we use RejectAllChanges Workbook Metod using VBA?

Shared workbook may have multiple users. Sometimes we may not needed the changes or modifications by the user, in that time we will reject all the changes by using RejectAllChanges workbook method using VBA.

VBA RejectAllChanges Workbook Method- Syntax

Here is the syntax to RejectAllChanges workbook method using VBA.

Workbooks(“Your Workbook Name”).RejectAllChanges(

[When], [Who], [Where])

When: It is an Optional parameter. It specifies when(time) all the changes are rejected in the workbook.
Who: It is an Optional parameter. It specifies all the changes are rejected by whom.
Where: It is an Optional parameter. It specifies where all the changes are rejected.
In the above syntax Workbook is object and VBA RejectAllChanges method of Workbook object.

VBA RejectAllChanges Workbook Method: Example 1

Here is the syntax to VBA RejectAllChanges Workbook method using VBA.

Sub Workbook_RejectAllChanges()
End Sub

VBA RejectAllChanges Workbook Method- Instructions

Please follow the below step by step instructions to execute the above mentioned VBA macros or codes:

  1. Open an Excel Workbook
  2. Press Alt+F11 to Open VBA Editor
  3. Insert a Module from Insert Menu
  4. Copy the above code for activating a range and Paste in the code window(VBA Editor)
  5. Save the file as macro enabled workbook
  6. Press ‘F5’ to run it or Keep Pressing ‘F8’ to debug the code line by line.

Leave A Comment

Related pages

excel vba workbook openmulti select listboxcells in a spreadsheetddl and dml pptlist of shortcut keys in excelhyperlink macro excelvba forms in excelvlookup formula example excel 2007how to unmerge cellscreating charts in excelvba excel loopsvba excel copy worksheetmsdasql providercombobox vba excel userformsas interview questions with answers pdfms excel hlookupexcel macro row countvba modellingexcel vba controlspivot excel tableproject management dashboard excel template free downloadmacro to combine multiple workbooks into oneproject schedule template excel 2007developer ribbon excel 2007vb opentextfilems excel practical questionsprotect an excel spreadsheetexcel macro to print to pdfms excel charts tutorialsum if in excelhow to remove columns in excelvba coding in excel for beginnershow to find duplicates in excel using pivot tablemeeting minute templates freehow to merge excel columnsrun excel macroexcel vba codescountif function excel 2013vb database connection codemacros programming in exceldashboard excel templatesvba programming basicsunhide hidden workbookmysql oledb connection stringexcel cell vbacomplex macros in excelload userformsql basics interview questions and answers pdfvisual basic tutorial torrentunhide command excelexcel if isnaexcel chart wizardcreate an array vbaexcel vba insert picturevba new linehow to protect excel worksheetvba excel select casevalue vba excelhow to unhide cells in excel 2010password protect xlsvba join arrayremoving hyperlinks in excellistbox in accessmsgbox vba accessvlookup uses exampleshow to highlight duplicate rows in excelexcel vba userformdefine array exceldrop down menu vbadelete blank cells in exceldouble vba