Solved

ActiveWorkbook.RejectAllChanges method explanation

Posted on 2010-09-13
2
831 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

MS Dynamics Made Instantly Simpler

Make Your Microsoft Dynamics Investment Count  & Drastically Decrease Training Time by Providing Intuitive Step-By-Step WalkThru Tutorials.

Question has a verified solution.

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

Suggested Solutions

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 …
This code takes an Excel list of URL’s and adds a header titled “URL List”. It then searches through all URL’s in column “A”, looking for duplicates. When a duplicate is found, it is moved to the top of the list. The duplicate URL’s are then highlig…
This Micro Tutorial will demonstrate how to use a scrolling table in Microsoft Excel using the INDEX function.
Many functions in Excel can make decisions. The most simple of these is the IF function: it returns a value depending on whether a condition you describe is true or false. Once you get the hang of using the IF function, you will find it easier to us…

751 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