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 macro delete columnmacro to delete blank rowspassword protect vba codehow to identify duplicate entries in excelexcel 2013 match functionexcel consolidate worksheets into onehow do you insert a row in excelvba excel connection stringsumif excedelete column vbaabsolute value vbacount columns excelexcel 2010 remove duplicatesmacro vlookupexcel listboxvba select rowexcel deleting duplicatesmicrosoft excel vba programmingexcel vba character codesshortcut key of excelexcel vba upperdeveloper tab excel 2007auto column width excelwhere is the developer tab in excelprotecting a worksheetdml ddl dcl in sql serverexcel for beginnersmsofiledialogfolderpicker vbahyperlink on excellookup function excel 2010excel dynamic cell referenceaccess 2010 msgboxmicrosoft excel how to merge cellstrend analysis template excelhow to write macro program in excelexcel vba combobox additemvba empty cellhow to insert a pivot table in excel 2013excel range lookupvbokonlymaking dashboards in excelvba excel read text filesort az excelpivot table advancebubble charts in excelvba get file extensionvba word tablesexcel shortcut hidepractice vlookupadvanced sas interview questionsis nothing vbaunlocking excel sheetexcel delete hidden rowsexcel button in celluserform unload vbavlookup function tutorialsql commands pptexcel 2010 column widthundo vbavba until loopuseful macros for excelms word vbadashboard report excelvba save excel fileexcel vba copy range to another sheetexcel isnavba macro code examplesexcel for begginerspowerpoint donut chartautofilter excel 2007excel macro save as xlsxvba pivot tablesexcel macro exampleexcel option button