Compile error with VBHTMLMaker.xla

batman37

New Member
Joined
Jul 21, 2007
Messages
14
When I click Compile VBHTMLMaker under Debug in the VBE a compile error appears in the Initialize Sub, specifically in the 8th line: Set Obj = Choose(j, Application.VBE.CommandBars.......

The error message is "Error in loading DLL", and the debug marker homes in on .CommandBars . There is no information about the DLL that isn't loading properly (or at all). It may be missing or corrupted, but I can't tell.

Although I have very little experience with add-ins, I am able to write and deploy macros with no problems like this one. I run Excel 2003 under WinXPSP2 with all updates.

Can someone tell me what I'm missing or doing wrong, or point me in the right direction?

Thanks, batman37
 

apolinary

New Member
Joined
Apr 1, 2016
Messages
0
Hi,
I managed to correct the VBHTMLMaker.xla. In my case it was incompatibility with x64 architecture.
However, I am not sure if it solves your problem. Anyway - you need to correct the function declaration to:

VBA Code:
#If Win64 Then
    Private Declare PtrSafe Function LockWindowUpdate Lib "user32" (ByVal hwndLock As Long) As Long
#ElseIf Win32 Then
    Private Declare Function LockWindowUpdate Lib "user32" (ByVal hwndLock As Long) As Long
#End If
 

apolinary

New Member
Joined
Apr 1, 2016
Messages
0
2020-08-04 14_14_20-Window.png
 

Peter_SSs

MrExcel MVP, Moderator
Joined
May 28, 2005
Messages
59,294
Office Version
  1. 365
Platform
  1. Windows
@apolinary

Are you aware that you are addressing a post that is 13 years old!!?

Since then the forum software has changed and there is no need for the VBHTML Maker in the forum any more since you can now just copy/paste your code using the vba code tags - just as you did in post #2. So there is actually no need to correct anything for use in this forum. ;)
 

Forum statistics

Threads
1,191,624
Messages
5,987,742
Members
440,106
Latest member
davcurnutt

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
Top