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.
tf1 said:But note that if this is Word 2003, normal.dot is not created until the user makes a change to the default settings that requires a normal.dot (such as changing the default font). So if the users have not made any changes to the default settings, normal.dot will not exist.
Sub UpdateUserName()
Dim oSheet As Worksheet
Dim uStart As Integer
Dim uEnd As Integer
Dim uStartText As String
Dim uEndText As String
uStartText = " User: *"
uEndText = "*"
Application.UserName = Environ("Username")
For Each oSheet In ActiveWorkbook.Sheets
With oSheet.PageSetup
If InStr(.RightFooter, uStartText) Then
uStart = InStr(.RightFooter, uStartText)
uEnd = InStr(uStart + Len(uStartText) + 1, .RightFooter, uEndText)
.RightFooter = Replace(.RightFooter, Mid(.RightFooter, uStart, uEnd), "")
End If
.RightFooter = .RightFooter & " User: *" & Application.UserName & "*"
End With
Next
End Sub