Results 1 to 2 of 2
  1. #1
    New Lounger
    Join Date
    Jun 2007
    Thanked 0 Times in 0 Posts

    vb6 word com add in (vb 6)

    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...

  2. #2
    Super Moderator
    Join Date
    Jan 2001
    Melbourne, Victoria, Australia
    Thanked 295 Times in 267 Posts

    Re: vb6 word com add in (vb 6)

    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.
    <pre>Sub AutoNew()
    MsgBox "I run on new files only"
    End Sub</pre>

    Andrew Lockton, Chrysalis Design, Melbourne Australia

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts