Results 1 to 3 of 3
  1. #1
    Lounger
    Join Date
    May 2003
    Location
    San Diego, California, USA
    Posts
    34
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Windows Help File (Word 2000)

    I am trying to load a Windows Help File into a UserForm. I can set the Help
    file location in the Project Properties, but I rather set the location with
    code.

    I can use:

    Application.VBE.ActiveVBProject.HelpFile = Application.StartupPath & _
    "Help.hlp

    which works fine if the project is open. If I load the project as a
    template, I get an error message that the Project is Protected.

    Thanks!

  2. #2
    Plutonium Lounger
    Join Date
    Mar 2002
    Posts
    84,353
    Thanks
    0
    Thanked 29 Times in 29 Posts

    Re: Windows Help File (Word 2000)

    What happens if you use

    ThisDocument.VBProject.HelpFile = Application.StartupPath & "Help.hlp"

    to set the help file for the template?

  3. #3
    Silver Lounger
    Join Date
    Mar 2001
    Location
    Springfield, Ohio, USA
    Posts
    2,136
    Thanks
    0
    Thanked 1 Time in 1 Post

    Re: Windows Help File (Word 2000)

    Hans's solution plus more info that you would ever want to know is given in Microsoft TecNet Adding Help to Custom Solutions. --Sam
    <font face="Comic Sans MS">Sam Barrett, CACI </font face=comic>
    <small>And the things that you have heard... commit these to faithful men who will be able to teach others also. 2 Timothy 2:2</small>

Posting Permissions

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