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.
' Code goes in ThisWorkbook within the .xlt file
Private Sub Workbook_Open()
Dim file_name As String, count As String
file_name = "C:\WINDOWS\Temp\Counter.txt"
count = "0"
On Error Resume Next
Open file_name For Input As #1
Line Input #1, count
Close #1
Open file_name For Output As #1
Write #1, CInt(count) + 1
Close #1
MsgBox CInt(count) + 1
End Sub