Launch Website

Launch Website

Anonymous
Not applicable
643 Views
7 Replies
Message 1 of 8

Launch Website

Anonymous
Not applicable
I'm prob way off with my code as usual. Can anyone help me or am I beyond it?

Public Sub LaunchNet()
Dim blnStatus As Boolean
Dim strWebURL As String

strWebURL = ("http://www.blahblahblah.com")
blnStatus = UtilityObject.LaunchBrowserDialog(, , , strWebURL)

End Sub
0 Likes
644 Views
7 Replies
Replies (7)
Message 2 of 8

Anonymous
Not applicable
Watch for word-wrapping.
I don't know if it get's any easier than this, but I'm sure there's another way.

Public Declare Function ShellExecute Lib "shell32.dll" Alias "ShellExecuteA" (ByVal Hwnd As Long, ByVal lpOperation As String, ByVal
lpFile As String, ByVal lpParameters As String, ByVal lpDirectory As String, ByVal nShowCmd As Long) As Long

Public Sub LaunchWebSite()
ShellExecute 0, "Open", "www.Autodesk.com", 0, 0, 1
End Sub

--
Matt W
"What the flip was Grandma doing at the sand dunes?"
0 Likes
Message 3 of 8

Anonymous
Not applicable
All of the parameters of the LaunchBrowserDialog method are required. You
can read up on what each one of them means in any of books.

Joe
--

wrote in message news:5207546@discussion.autodesk.com...
I'm prob way off with my code as usual. Can anyone help me or am I beyond
it?

Public Sub LaunchNet()
Dim blnStatus As Boolean
Dim strWebURL As String

strWebURL = ("http://www.blahblahblah.com")
blnStatus = UtilityObject.LaunchBrowserDialog(, , , strWebURL)

End Sub
0 Likes
Message 4 of 8

Anonymous
Not applicable
Ok Ok Ok ...
The web file browser isn't exactly what I need (just the closest thing I could find on my own).
I just need code that will open a web page (used on a user form button).
I have tried pasting Matt's code in the module, user form heck everywhere I could think of. I just keep getting an error (Compile error: Expected: identifier). Where should the code be placed?
0 Likes
Message 5 of 8

Anonymous
Not applicable
Check out the attached file...


--
Matt W
"What the flip was Grandma doing at the sand dunes?"
0 Likes
Message 6 of 8

Anonymous
Not applicable
Hi Matt

I've tried running the project but nothing happens when I click the button. Not sure if it's a problem at this end or not....
0 Likes
Message 7 of 8

Anonymous
Not applicable
It should work. Not sure what's going on.
Have you tried it on another computer??

--
Matt W
"What the flip was Grandma doing at the sand dunes?"
0 Likes
Message 8 of 8

Anonymous
Not applicable
Humph. I tried it on somebody elses machine but it didn't work 😞
We all share the same IP address and we are in the UK. I've had a problem with linetypes once where instead of the acad.lin file we have the acadiso.lin as a default. Perhaps it's something like that?
0 Likes