+ Reply to Thread
Results 1 to 2 of 2

User Stamp when Modifying a Cell

  1. #1
    Registered User
    Join Date
    02-20-2012
    Location
    Baltimore, MD
    MS-Off Ver
    Excel 2010
    Posts
    30

    User Stamp when Modifying a Cell

    I am trying to make it so if any cell is modified in ranges D12:D20, D22:D25, D27:D37 or D39:D45, a user stamp appears in the column beside it, I have the following code so far, but it will only work for the first set of ranges, I am pretty sure its because I have set to " Is Nothing Then Exit Sub" after the first "If" statement, but I dont know what the correct way is to make this work, it should be pretty simple. Kinda new at this Excel VBA thing so bear with me. Thank you!

    Please Login or Register  to view this content.

    Solved, Thank you Paul!

    Quote Originally Posted by Paul View Post
    Please Login or Register  to view this content.
    Last edited by cg0789; 02-28-2012 at 01:20 PM.

  2. #2
    Forum Expert Paul's Avatar
    Join Date
    02-05-2007
    Location
    Wisconsin
    MS-Off Ver
    2016/365
    Posts
    6,887

    Re: User Stamp when Modifying a Cell

    Hi Cg, you're probably better off using:
    Please Login or Register  to view this content.
    On another note, "Application.UserName" can be blank or incorrect as it is easily modifiable in the Excel Options window. You may want to try Environ("Username") instead, which will return the Windows login of the currently logged in user.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1