runtime error 5 in HtmlMaker20101230

ask2tsp

Well-known Member
Joined
Feb 18, 2015
Messages
506
Office Version
  1. 365
Platform
  1. Windows
installed add-in and then every time it produces this error
----------
Sub CleanUp()
Dim cbc As CommandBarControl
On Error Resume Next
Set cbc = Application.CommandBars("Worksheet Menu Bar").Controls("MrExcelHtml")

result: runtime error 5 invalid procedure call or invalid argument
----------
using windows 8.1, excel 2013 (language Netherlands)

any idea what's going on?
 
Since the HTML Maker works for me in Excel 2013 (English) and Windows 7, I'm wondering if it relates to Windows 8 or the different language version of Excel. I don't have either of those so am unable to investigate.
Did you try Excel jeanie? It's my preference in most case anyway as it enables showing more things like Conditional Formatting Rules, Data Validation etc
 
Peter, I was digging a bit further in this matter and discovered that this error is raised if the control (MrExcelHtml) does not exists. One would expect another error number. This error 5 is probably not rerouted by 'on error' logic.
I'll try Excel jeanie.
 
It should be suppressed by the On Error statement - I suspect you have your VBE set to break on all errors.
 
that saved the day! thanks RoryA
 
But now, although HTMLmaker works, I cannot properly debug vba code anymore!
Maybe one of these days I'll dig into the HTMLmaker code to see if this can be solved without using on error resume next.
 
You should not need that setting on to debug code. (I've never had it set to that - I always use break in class module.)
 

Forum statistics

Threads
1,223,236
Messages
6,170,915
Members
452,366
Latest member
TePunaBloke

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top