With all the Sarbanes-Oxley (SOX) requirements going around lately, there has been a big push to making staff attest that they have reviewed the various Excel reports they are sent. One way to do that is to have them sign and date the report and save the report somewhere on the network. Later I will run an Excel macro that goes and looks for everyone’s signature and produces a report of who has signed and when.
Anywho, for the signature portion, I've added a sheet in the Excel reports, the sheet is called Signature. This sheet has a check box. Clicking this check box called chkSignature, populates cells C2 and C3 with the Windows User ID and the Date.
For the user's Windows User ID, we use the method Environ("username"). And for the Date we use well, the Date function.
Here is the code behind the click event of check box chkSignature:
Private Sub chkSignature_Click()
If chkSignature.Value = True Then
Sheets("Signature").Range("C2").Value = Environ("username")
Sheets("Signature").Range("C3").Value = Date
Else
Sheets("Signature").Range("C2").Value = ""
Sheets("Signature").Range("C3").Value = ""
End If
End Sub
Subscribe to:
Post Comments (Atom)
3 comments:
Hi Great work down with Excel.Could not get much of other stuff written but it definetly grabs attention
Hi,
Good one.
I am looking for code in excel to capture signature from a windows mobile PDA device & store this in windows mobile Excel.
Can you help me?
Regards,
krish
my email address- rkrishest@gmail.com
Post a Comment