Share via

Cell Specific authentication

Anonymous
2024-10-23T12:11:59+00:00

Hello,

I am trying to find a way to create cell specific time stamps and cell specific user verification in excel. We use excel in a way that requires user signoffs and time stamps. Is this something that can be done?

Microsoft 365 and Office | Excel | Other | Windows

Locked Question. This question was migrated from the Microsoft Support Community. You can vote on whether it's helpful, but you can't add comments or replies or follow the question.

0 comments No comments

3 answers

Sort by: Most helpful
  1. Anonymous
    2024-10-23T17:54:14+00:00

    Something like this:

    1. Copy this code.
    2. Right-Click the sheet tab of interest.3) Select "View Code"4) Paste the code into the window that appears.5) Save the file as a macro-enabled .xlsm file.6) Make changes as needed Private Sub Worksheet_Change(ByVal Target As Range) If Target.Cells.Count > 1 Then Exit Sub If Target.Column <> 3 Then Exit Sub 'only check cells in column C If Application.UserName <> "Ramirez, Pierson" Then 'only you can can make the change in column C
       'Turn off events to keep out of loops 
      
       Application.EnableEvents = False 
      
       Application.Undo 
      
       MsgBox "You """ & Application.UserName & """ don't have permission to change that cell." 
      
       'Turn events back on to get ready for the next change 
      
       Application.EnableEvents = True 
      
       Exit Sub 
      
      End If 'Turn off events to keep out of loops Application.EnableEvents = False Target.Offset(0, 1).Value = Application.UserName & " " & Now 'Turn events back on to get ready for the next change Application.EnableEvents = True

    End Sub

    Was this answer helpful?

    0 comments No comments
  2. Anonymous
    2024-10-23T17:39:39+00:00

    Thanks, what would that coding look like?

    Was this answer helpful?

    0 comments No comments
  3. Anonymous
    2024-10-23T16:53:07+00:00

    If you are using desktop Excel, then you can use VBA/event code to do user verification and create time stamps.

    Was this answer helpful?

    0 comments No comments