• vb6 word com add in (vb 6)

    Author
    Topic
    #443547

    i create a command bar in microsoft word using vb com add in. when i click on the command button, a form will be displayed to allow user to input.
    but if i open new document and click on the button to create the form, the form should be depend on the new document. Now, i cant create the form is depend on the document.Any example to show me.i need help…

    Viewing 0 reply threads
    Author
    Replies
    • #1070101

      I’m not sure on what exactly you are asking but I guess you want to know how to have a macro run automatically when a new document is created. If you name a macro with the title AutoNew() then it will run in this situation.

      Sub AutoNew()
        MsgBox "I run on new files only"
      End Sub
    Viewing 0 reply threads
    Reply To: vb6 word com add in (vb 6)

    You can use BBCodes to format your content.
    Your account can't use all available BBCodes, they will be stripped before saving.

    Your information: