VBA2HTML - version for Access MS 365

wrmosca

New Member
Joined
Jan 8, 2025
Messages
1
Office Version
  1. 365
Platform
  1. Windows
I was an Access developer for more than 25 years. I used to use bykin's vba2html converter in Access 2000. I still have the files but am having no luck installing it in MS 365's Access VBE. Can this be done? If not, Where can I find a COM add-in that will to the same thing - converting VBA to HTML for printing or posting in forums?
 

Excel Facts

Wildcard in VLOOKUP
Use =VLOOKUP("Apple*" to find apple, Apple, or applesauce
Bill,

Crystal Long (strive4peace) has an Access Addin to color vba code and output to HTML. It is not a COM addin, but may be useful depending on your detailed needs.

A Sample:
<pre><span style="color:green">'---------------------------------------------------------------------------------------
' Procedure : GetProgramFilesFolder
' Author : Bill Mosca
' Date : 21-10-2011
' Purpose :an easy way to get the Program Files folder path on your PC
'---------------------------------------------------------------------------------------
' Last Modified:
'
' Inputs: N/A
' Dependency: N/A
'--------------------------------------------------------------------------
'</span>
<span style="color:blue">Public Function</span> GetProgramFilesFolder() <span style="color:blue">As String</span>
<span style="color:blue">Const</span> PROGRAM_FILES = &H26&
<span style="color:blue">Dim</span> objShell <span style="color:blue">As Object</span>
<span style="color:blue">Dim</span> objFolder <span style="color:blue">As Object</span>
<span style="color:blue">Dim</span> objFolderItem <span style="color:blue">As Object</span>

10 <span style="color:blue">On Error GoTo</span> GetProgramFilesFolder_Error

20 <span style="color:blue">Set</span> objShell = CreateObject( "Shell.Application")
30 <span style="color:blue">Set</span> objFolder = objShell.Namespace(PROGRAM_FILES)
40 <span style="color:blue">Set</span> objFolderItem = objFolder.self


50 <span style="color:blue">Debug.Print</span> objFolderItem.Path

60 <span style="color:blue">On Error GoTo</span> 0
70 <span style="color:blue">Exit Function</span>

GetProgramFilesFolder_Error:

80 MsgBox "Error " & Err.Number & " (" & Err.Description & ") in procedure GetProgramFilesFolder of Module AWF_Related"

<span style="color:blue">End Function</span> </pre>

' Made with Color Code add-in posted on Color Code
 
Last edited:
Upvote 0

Forum statistics

Threads
1,225,502
Messages
6,185,350
Members
453,288
Latest member
rlmorales2000

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