Solved

ActiveWorkbook.RejectAllChanges method explanation

Posted on 2010-09-13
2
824 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

Optimizing Cloud Backup for Low Bandwidth

With cloud storage prices going down a growing number of SMBs start to use it for backup storage. Unfortunately, business data volume rarely fits the average Internet speed. This article provides an overview of main Internet speed challenges and reveals backup best practices.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

A theme is a collection of property settings that allow you to define the look of pages and controls, and then apply the look consistently across pages in an application. Themes can be made up of a set of elements: skins, style sheets, images, and o…
When you see single cell contains number and text, and you have to get any date out of it seems like cracking our heads.
This Micro Tutorial will demonstrate how to use a scrolling table in Microsoft Excel using the INDEX function.
This Micro Tutorial will demonstrate how to create pivot charts out of a data set. I also added a drop-down menu which allows to choose from different categories in the data set and the chart will automatically update.

777 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