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.
If NEEDED???to carefully insert lines if needed.
Sub AddExplicit()
Dim VBComp As VBComponent, StrCode As String, i As Long
For Each VBComp In ThisDocument.VBProject.VBComponents
With VBComp.CodeModule
StrCode = Trim(.Lines(1, .CountOfLines))
For i = 0 To UBound(Split(StrCode, vbCrLf))
If Trim(Split(StrCode, vbCrLf)(i)) = "Option Explicit" Then
Exit For
ElseIf InStr(Trim(Split(StrCode, vbCrLf)(i)), "(") > 0 Then
.AddFromString ("Option Explicit" & vbCrLf)
Exit For
End If
Next
End With
Next
End Sub