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.
[blue]For Each r In Application.VBE.ActiveVBProject.References
If r.FullPath = "c:\WINNT\System32\winhttp.dll" Then Application.VBE.ActiveVBProject.References.Remove r
Next[/blue]
On Error Resume Next
Select Case Application.Version
Case "8.0" 'Office 97
Load version 8 references
Case "9.0" 'Office 2000
Load version 9 references
Case "10.0" 'Office XP
Load version 10 references
Case "11.0" 'Office 2003
With ActiveWorkbook.VBProject.References
.Remove ThisWorkbook.VBProject.References("Microsoft Outlook 11.0 Object Library")
MyPath = OfficePath & "msoutl.olb"
strReference = MyPath
.AddFromFile strReference
End With
With ActiveWorkbook.VBProject.References
.Remove ThisWorkbook.VBProject.References("Microsoft Word 11.0 Object Library")
MyPath = OfficePath & "msword.olb"
strReference = MyPath
.AddFromFile strReference
End With
Etc .....
End With
Case Else
MsgBox "This code was not written for Excel Version " & Application.Version
End Select