+ Reply to Thread
Results 1 to 2 of 2

Vba code for timestamp when object is clicked

  1. #1
    Registered User
    Join Date
    09-23-2016
    Location
    India
    MS-Off Ver
    2007
    Posts
    5

    Vba code for timestamp when object is clicked

    Require your help and time for an project currently working on , but could not find out the solution, The work sheet already has an Macro with it for protection.

    Sub Locksheet()
    ActiveSheet.Protect DrawingObjects:=True, Contents:=True, Scenarios:=True, Password:="Partha"
    ActivaSheet.EnableSelection = xlUnlockedCells
    End Sub

    Sub unlocksheet()
    ActiveSheet.Unprotect Password:="Partha"
    End Sub



    need another with a time stamp at G4 cell when the "SUBMIT REPORT" is clicked , I have 31 sheets in the workbook each for a day of the month.
    Attached Files Attached Files

  2. #2
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,882

    Re: Vba code for timestamp when object is clicked

    Administrative Note:

    We would very much like to help you with your query, however you need to include code tags around your code.

    Please take a moment to add the tags. Posting code between [code]Please [url=https://www.excelforum.com/login.php]Login or Register [/url] to view this content.[/code] tags makes your code much easier to read and copy for testing, and it also maintains VBA formatting.

    Please see Forum Rule #2 about code tags and adjust accordingly. Click on Edit to open your post, then highlight your code and click the # icon at the top of your post window. More information about these and other tags can be found here

    (Note: this change is not optional. No help to be offered until this moderation request has been fulfilled.)
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    Forum Rules (updated August 2023): please read them here.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. [SOLVED] VBA? Making a Master Slide Object Appear on All Subsequent Slides Once Clicked
    By AliGW in forum PowerPoint Formatting & General
    Replies: 12
    Last Post: 01-25-2020, 10:32 AM
  2. VBA object to copy a row when that row is clicked...
    By sdotson in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 03-30-2015, 02:45 PM
  3. VBA to change cell value when a shape object is double clicked or active
    By tantcu in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 01-06-2014, 02:31 PM
  4. [SOLVED] code so that when a cell is clicked, a tick mark goes in the cell that was clicked
    By behnam in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 08-08-2013, 01:17 PM
  5. [SOLVED] Generic Current Object Reference Inside that Object's Code
    By Aegwyn11 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 11-02-2012, 01:23 PM
  6. Determining what object was clicked.
    By foxguy in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 09-06-2010, 04:25 PM
  7. [SOLVED] Determine last clicked object / control
    By Rex in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 07-15-2005, 02:05 PM

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