Solved

ActiveWorkbook.RejectAllChanges method explanation

Posted on 2010-09-13
2
819 Views
Last Modified: 2012-08-13
Hi Experts,
I am working on a shared excel workbook and want to make use of the ActiveWorkbook.RejectAllChanges method.
However any time I try and use it I get run-time error 1004, method failed error.

I can't see to find any helpful reference guides on the method so posted this question in case someone has been successful with it.

Thanks,
Gerry.
0
Comment
Question by:gerry_ocallaghan
2 Comments
 
LVL 92

Expert Comment

by:Patrick Matthews
ID: 33662620
>>I am working on a shared excel workbook The consensus opinion of Experts here is that using 'share workbook' should be assiduously avoided.  This is a poorly implemented feature in Excel that leaves workbooks highly vulnerable to corruption.  If true multi-user capability truly is needed, then the best practice is to use a database platform such as Access, SQL Server, MySQL, etc.Just about the only use for shared workbooks endorsed by the Experts here is to enable 'track changes',and even then, the workbook should still not be used by multiple users at the same time.It is only a small exagerration to say that there are only two kinds of shared workbooks: those that havebecome corrupted, and those that soon will be :)
0
 

Accepted Solution

by:
gerry_ocallaghan earned 0 total points
ID: 33670268
After days of bashing my head against a wall I've stumbled onto the answer.

To use this method, you must have already marked the workbook as shared under the Review menu.  Once saved as a shared workbook, you can use the activeworkbook.rejectallchanges method no problem.  Remember to execute an activeworkbook.save method immediately after.

0

Featured Post

Maximize Your Threat Intelligence Reporting

Reporting is one of the most important and least talked about aspects of a world-class threat intelligence program. Here’s how to do it right.

Join & Write a Comment

Suggested Solutions

This tutorial explains how to create a series of drop-down lists that are dependent upon prior selections to guide (“force”) the user to make the correct selection and reduce data errors within Microsoft Excel. Excel 2010 was used for this tutorial;…
Entering time in Microsoft Access can be difficult. An input mask often bothers users more than helping them and won't catch all typing errors. This article shows how to create a textbox for 24-hour time input with full validation politely catching …
The viewer will learn how to use the =DISCRINV command to create a discrete random variable, use this command to model a set of probabilities and outcomes in a Monte Carlo simulation, and learn how to find the standard deviation of a set of probabil…
This Micro Tutorial will demonstrate how to use longer labels with horizontal bar charts instead of the vertical column chart.

708 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

20 Experts available now in Live!

Get 1:1 Help Now