Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
Private Declare Function fCreateShellLink Lib "Vb5stkit.dll" (ByVal _
lpstrFolderName As String, _
ByVal lpstrLinkName As String, _
ByVal lpstrLinkPath As String, _
ByVal lpstrLinkArgs As String) As Long
Sub CreateShortcut(sDisplayName As String, sFullPath As String)
Dim lReturn As Long
Dim sDeskName As String
Dim sLinkArgs As String
On Error GoTo ErrHndlr
'Add to Desktop
sDeskName = "..\..\Desktop"
sLinkArgs = ""
lReturn = fCreateShellLink(sDeskName, sDisplayName, sFullPath, sLinkArgs)
If lReturn <> 1 Then
MsgBox "There was an error creating the shortcut:" & vbCrLf & sDisplayName & vbCrLf & sFullPath
End If
Exit Sub
ErrHndlr:
sDeskName = "System Error in CreateShortcut()!"
sDeskName = sDeskName & "Error No: " & Err.Number & vbCrLf & "Error Desc: " & Err.Description
sDeskName = sDeskName & vbCrLf & sDisplayName & vbCrLf & sFullPath
Err.Clear
MsgBox sDeskName
End Sub
'To Create a Shortcut:
Call CreateShortcut("Ratings Program", "\\H4MWN\Applications\Thermal\Ratings.exe")