john316swan
Board Regular
- Joined
- Oct 13, 2016
- Messages
- 66
- Office Version
- 2019
- Platform
- Windows
This code is periodically crashing excel when a user doesn't save a workbook.
I ran the "Compile VBA Project" from the debug menu and it gave me an error or "invalid inside procedure" so I figured I messed up and needed to add the Option Explicit above the sub FillLog(uName)...The problem is, that it is in hundreds of workbooks Any advice on how to fix this?
Code:
Sub FillLog(uName)
Option Explicit
uName = Environ("UserName")
Sheets("Values").Cells(10, 43) = uName
End Sub
I ran the "Compile VBA Project" from the debug menu and it gave me an error or "invalid inside procedure" so I figured I messed up and needed to add the Option Explicit above the sub FillLog(uName)...The problem is, that it is in hundreds of workbooks Any advice on how to fix this?