How do you open a .htm file within an Inventor VBA prog from a button.

How do you open a .htm file within an Inventor VBA prog from a button.

Anonymous
Not applicable
736 Views
2 Replies
Message 1 of 3

How do you open a .htm file within an Inventor VBA prog from a button.

Anonymous
Not applicable

Hi - a real easy question for someone who knows the answer.

 

How do you open a .htm file and set it as the focused window within an Inventor VBA prog from a button on a userform?

 

I just want to add a quick help page for a program I've cobbled together.

 

Thanks in advance for any help anyone can give.

 

Nik

0 Likes
Accepted solutions (1)
737 Views
2 Replies
Replies (2)
Message 2 of 3

pball
Mentor
Mentor
Accepted solution

This is what I was given for opening files before. It will just open the file using the default program on the computer.

 

        Dim myShell As Object
        Set myShell = CreateObject("WScript.Shell")
        myShell.Run quote(FilePath)

Check out my style edits for the Autodesk forums
pball's Autodesk Forum Style
Message 3 of 3

Anonymous
Not applicable

Thankyou - that is exactly what I was after!

 

Cheers

Nik

0 Likes