LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11
Default Run time error '429'

...ActiveX component can't create object.
I got this code from DevX which is
spozed to open some kind of form
within the spreadsheet that allows editing
of really complex IF statements.
Only it doesn't work, generating a run time error '429'
This is where the error occurs:

Set parser = New FormulaAnalyser

The Class module code is below.

After I loaded the add-in,
I did reference the "FormulaParser.tlb"
but didn't help.
Everytime I restart Excel, I have to
re-point to "FormulaParser.tlb",
and it doesn't work anyway.

No one has yet posted on DevX that
the add-in doesn't work, but it
definately doesn't work for me.


Option Explicit
Private Const FORMULA_MENU_NAME = "Format Formula"
Public WithEvents app As Application

Private Sub App_SheetBeforeRightClick(ByVal Sh As Object, _
& ByVal Target As Range, Cancel As Boolean)
Dim bRet As Boolean
If Target.HasFormula Then
If Target.HasArray Then
Debug.Print "Array formula"
End If
If InStr(1, Target.formula, "if(", vbTextCompare) 0 Then
Application.CommandBars("Cell").Controls(FORMULA_M ENU_NAME).Enabled
= True
Else
Application.CommandBars("Cell").Controls(FORMULA_M ENU_NAME).Enabled
= False
End If
Else
Application.CommandBars("Cell").Controls(FORMULA_M ENU_NAME).Enabled =
False
End If
End Sub

Private Sub Class_Initialize()
Dim c As CommandBarControl
On Error Resume Next
Application.CommandBars("Cell").Controls(FORMULA_M ENU_NAME).Delete
On Error GoTo 0
Set c = Application.CommandBars("Cell").Controls.Add
c.Caption = FORMULA_MENU_NAME
c.OnAction = "showFormula"
End Sub

Private Sub Class_Terminate()
On Error Resume Next
Application.CommandBars("Cell").Controls(FORMULA_M ENU_NAME).Delete
End Sub


 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
XL Runtime error '429' message XL Baby Excel Discussion (Misc queries) 2 August 7th 08 02:56 PM
XL Runtime error '429' message: a question to Microsoft's experts XL Baby Excel Discussion (Misc queries) 0 August 4th 08 01:28 AM
XL Runtime error '429' -- help please XL Baby Excel Discussion (Misc queries) 0 July 30th 08 09:20 PM
Run-time error '429' slaya_cz[_3_] Excel Programming 5 June 14th 05 11:40 AM
Runtime error '429': ActiveX component can't create object. HELP!! brazilnut Excel Programming 2 January 30th 04 10:47 PM


All times are GMT +1. The time now is 10:11 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"