Excel Macro Automation Error Unspecified Error
Contents |
here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings and policies of this site About Us Learn more about Stack Overflow
Excel Vba Automation Error Unspecified Error
the company Business Learn more about hiring developers or posting ads with us Stack automation error unspecified error excel 2007 Overflow Questions Jobs Documentation Tags Users Badges Ask Question x Dismiss Join the Stack Overflow Community Stack Overflow is a community of
Runtime Error Automation Error Unspecified Error
4.7 million programmers, just like you, helping each other. Join them; it only takes a minute: Sign up What is causing “Automation error Unspecified error” on Worksheet_Activate? up vote 2 down vote favorite 2 I automation error vba have a worksheet named "Dates" (object name is A_Dates) that needs to be calculated when it is activated (It may be worth noting that this is in my Personal macro workbook). I regularly have workbooks open that have too many calculations in the for me to have auto-calculation on. So I have auto-calc set to manual, and the following code in the worksheet: Private Sub Worksheet_Activate() A_Dates.Calculate End Sub This has worked automation error excel fine for the last 3 months, day-in and day-out. Yesterday, it stopped working. It now throws this error on the declaration line: Microsoft Visual Basic Automation error Unspecified error [OK] [Help] I have tried changing how I reference the sheet, using: Sheets("Dates").Calculate and ActiveSheet.Calculate to no avail. I've also included error handling: On Error Resume Next which doesn't prevent it. I've even gone so far as: Private Sub Worksheet_Activate() On Error GoTo headache Sheets("Dates").Calculate Exit Sub headache: Exit Sub End Sub and it still shows up. I am totally at a loss. Help? Additional Information I have the following references, and use all of them in various macros in this workbook: Visual Basic for Applications Microsoft Excel 12.0 Object Library OLE Automation Microsoft Office 12.0 Object Library Microsoft Scripting Runtime Microsoft Forms 2.0 Object Runtime Microsoft HTML Object Library Microsoft Internet Controls Microsoft ActiveX Data Objects 2.8 Library Microsoft ActiveX Data Objects Recordset 2.8 Library vba error-handling excel-2007 share|improve this question edited Sep 4 '12 at 21:43 asked Sep 4 '12 at 20:30 Farfromunique 1311112 If you comment that line out and manually force a Recalc (using [F9]) do you receive an error? –mwolfe02 Sep 4 '12 at 21:13 No, I do not. And, everything seems to calculate correctly. &
be down. Please try the request again. Your cache administrator is webmaster. Generated Sat, 15 Oct 2016 09:53:23 GMT by s_ac15 (squid/3.5.20)
Forum Microsoft Office Application Help - Excel Help forum Excel Programming / VBA / Macros Automation Error; Unspecified Error To get replies by our experts at nominal charges, follow this link to buy points and post your thread in our http://www.excelforum.com/showthread.php?t=856532 Commercial Services forum! Here is the FAQ for this forum. + Reply to Thread Results 1 to 3 of 3 Automation Error; Unspecified Error Thread Tools Show Printable Version Subscribe to this Thread… Rate This Thread Current Rating Excellent Good Average Bad Terrible Display Linear Mode Switch to Hybrid Mode Switch to Threaded Mode 08-29-2012,10:03 AM #1 jprisco View Profile View Forum Posts Registered User Join Date automation error 08-29-2012 Location Oswego, NY MS-Off Ver Office 2007 Posts 1 Automation Error; Unspecified Error I am havign issues with multiple users on Excel 2007. There may have been a recent update that is causing these issues. All of them are getting an error either when opening Excel or when working on VBA: Microsoft Visual Basic --------------------- Automation error Unspecified error One of my users cannot save files either; it throws an error that automation error unspecified unfortunately I have not written down. Has anyone seen similar behavior and can point me in the right direction? Register To Reply 08-29-2012,10:30 AM #2 Kyle123 View Profile View Forum Posts Visit Homepage Forum Guru Join Date 03-10-2010 Location Leeds MS-Off Ver 2013 Win7 Posts 5,869 Re: Automation Error; Unspecified Error Give these tips a try: http://www.cpearson.com/excel/StartupErrors.aspx Register To Reply 08-30-2012,12:52 PM #3 GregMiliates View Profile View Forum Posts Registered User Join Date 08-30-2012 Location New Mexico MS-Off Ver Excel 2007 Posts 1 Re: Automation Error; Unspecified Error I ran into this problem, and after spending a couple frustrating hours on it (!), found the cause and the fix. Turns out you need to un-register and re-register the mscomctl.ocx file. Here's some additional info:http://stackoverflow.com/questions/1...aused-by-forms http://social.technet.microsoft.com/...0-c166aad4ff19 Register To Reply + Reply to Thread « Previous Thread | Next Thread » Thread Information Users Browsing this Thread There are currently 1 users browsing this thread. (0 members and 1 guests) Tags for this Thread automation error, unspecified error, vba View Tag Cloud Bookmarks Bookmarks Digg del.icio.us StumbleUpon Google Posting Permissions You may not post new threads You may not post replies You may not post attachments You may not edit your posts BB code is On Smilies are On [IMG] code is Off HTML code is Off Forum Rul