NBVC
Well-known Member
- Joined
- Aug 31, 2005
- Messages
- 5,828
Hi all,
I am suddenly getting an error message when I try to use Colo's HTML Maker Addin. I looked in the FAQ's and didn't see anything that could help. The error is a runtime error: 5 invalid procedure call or argument.
In this part of the HTML Maker Code (in the Mod_Menu module) the debugger highlights the following line:
Has anybody got any ideas?
Note: I did try removing the addin and re-installing it from Colo's website but to no avail.
[/code]
I am suddenly getting an error message when I try to use Colo's HTML Maker Addin. I looked in the FAQ's and didn't see anything that could help. The error is a runtime error: 5 invalid procedure call or argument.
In this part of the HTML Maker Code (in the Mod_Menu module) the debugger highlights the following line:
Code:
Application.CommandBars(1).Controls(Caption).Delete
Has anybody got any ideas?
Note: I did try removing the addin and re-installing it from Colo's website but to no avail.
Code:
Sub DeleteMenu()
' This sub should be executed when the workbook is closed
' Deletes the Menus
Dim MenuSheet As Worksheet
Dim Row As Integer
Dim Caption As String
On Error Resume Next
Set MenuSheet = ThisWorkbook.Sheets("MenuSheet")
Row = 2
Do Until IsEmpty(MenuSheet.Cells(Row, 1))
If MenuSheet.Cells(Row, 1) = 1 Then
Caption = MenuSheet.Cells(Row, 2)
Application.CommandBars(1).Controls(Caption).Delete
End If
Row = Row + 1
Loop
On Error GoTo 0
End Sub