Solved

ActiveWorkbook.RejectAllChanges method explanation

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

Networking for the Cloud Era

Join Microsoft and Riverbed for a discussion and demonstration of enhancements to SteelConnect:
-One-click orchestration and cloud connectivity in Azure environments
-Tight integration of SD-WAN and WAN optimization capabilities
-Scalability and resiliency equal to a data center

Question has a verified solution.

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

Suggested Solutions

Whether you've completed a degree in computer sciences or you're a self-taught programmer, writing your first lines of code in the real world is always a challenge. Here are some of the most common pitfalls for new programmers.
This article descibes how to create a connection between Excel and SAP and how to move data from Excel to SAP or the other way around.
This Micro Tutorial will demonstrate on a Mac how to change the sort order for chart legend values and decrpyt the intimidating chart menu.
This Micro Tutorial will demonstrate in Microsoft Excel how to add style and sexy appeal to horizontal bar charts.

856 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