Hi all,
It's probably been asked before, but I can't find a specific answer. I just want to know how to log a message to my alarms and events history using VBA.
The customer wants to keep track of who's done what - obviously, we can currently see who acknowledged which alarm when and on what client computer, but he also wants to see things like "who started the line at what time" and "who shut down the client" and "who disabled this interlock" etc.
Can anyone give me some sample VBA code to log these sort of things? I know how to get the required information as far as login and computer name, I just don't know how to put it in the log.
While I'm no the topic, is there a way to filter through the alarm and event log for user messages like these? Obviously there is a whole lot of information getting logged and to manually search through for certain events could be time consuming? Or perhaps it would be better to create a separate log for user events? Any ideas?
Thanks!
It's probably been asked before, but I can't find a specific answer. I just want to know how to log a message to my alarms and events history using VBA.
The customer wants to keep track of who's done what - obviously, we can currently see who acknowledged which alarm when and on what client computer, but he also wants to see things like "who started the line at what time" and "who shut down the client" and "who disabled this interlock" etc.
Can anyone give me some sample VBA code to log these sort of things? I know how to get the required information as far as login and computer name, I just don't know how to put it in the log.
While I'm no the topic, is there a way to filter through the alarm and event log for user messages like these? Obviously there is a whole lot of information getting logged and to manually search through for certain events could be time consuming? Or perhaps it would be better to create a separate log for user events? Any ideas?
Thanks!