How to import visual basic 6.0 code in ms word or HTML format

Posted on 2005-05-02
Last Modified: 2013-11-25
I wonder if anybody could help me. I am doing my project in visual basic, now the code is very big i want to put that code in my documentation. but the problem is cut paste technique is not good as it makes all code in mess. Is there any other way to do this.
Thank you

Question by:Rafi-muqaddar
    LVL 20

    Expert Comment

    Am I correct in assuming your documentation is in MS Word?

    If so, simply save your code to a text file, then in MS Word, select Insert, File, YourFile.txt ...

    I hope this is what you were looking for.
    LVL 13

    Accepted Solution

    Hi dsacker,
    VBdocman sounds like something you might be interested in - it creates (or helps) docs to your source in HTML (or whatever):
    Or for just exporting the code as HTML: Try Codex (free):
    A simpler, free tool might be: (but it doesn't use your source, just the objects)
    LVL 2

    Expert Comment

    Hi Rafi,
    It's very simple, because your VB Code files (.frm, .cls,.bas) can read by any text reader application as notepad, wordpad, Ms Word,...

    In the first part of file will be some declarations of your menu or objects in your form file (if this form has menu or something else).  
    And then it's your code you need.

    Good Luck!!!

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    Threat Intelligence Starter Resources

    Integrating threat intelligence can be challenging, and not all companies are ready. These resources can help you build awareness and prepare for defense.

    Background What I'm presenting in this article is the result of 2 conditions in my work area: We have a SQL Server production environment but no development or test environment; andWe have an MS Access front end using tables in SQL Server but we a…
    Since upgrading to Office 2013 or higher installing the Smart Indenter addin will fail. This article will explain how to install it so it will work regardless of the Office version installed.
    Get people started with the process of using Access VBA to control Excel using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Excel. Using automation, an Access application can laun…
    Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…

    779 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    15 Experts available now in Live!

    Get 1:1 Help Now