+ Reply to Thread
Results 1 to 3 of 3

Q-2 Macro code for date and time in protected excel file when if condition applicable

  1. #1
    Registered User
    Join Date
    12-05-2013
    Location
    kochi
    MS-Off Ver
    Excel 2003
    Posts
    10

    Q-2 Macro code for date and time in protected excel file when if condition applicable

    HI,

    Any one can help me to find out how can create macro code for automatically updating current time when if condition is applicable? I have explained every thing in the attached excel file!! Please create macro in those excel file..also i would like to know how to protect macro code?
    Attached Files Attached Files

  2. #2
    Valued Forum Contributor
    Join Date
    09-25-2011
    Location
    Eastbourne, England
    MS-Off Ver
    Excel 2010
    Posts
    1,089

    Re: Q-2 Macro code for date and time in protected excel file when if condition applicabl

    Hi ajeshvnair

    Good news and bad news from me. I have answered your question above, but when I see your workbook, I cannot get it to work.

    The good news is that I have done what you ask in that when a particular column's cell changes to "Completed" the time is entered in the next column. Job done.

    The bad news is that if I try to do this on a protected sheet then, even if I unprotect the sheet, the whole system fails to work until I close down and re-open Excel (not just the workbook).

    So the way forward is either to (a) find some genius who can get it to work on a protected worksheet or (b) use non-Excel protection (this involves promising to do unspecified, unspeakable things to anyone who makes any unauthorised changes to the worksheet). (And I do not want to hear whingeing from people about human rights etc. I have tried it and it works! )

    Note that the workbook is now a macro enabled workbook and you may have to change your macro security settings. To see the code, right click on the sheet tab and select View Code.

    (Am I correct in assuming that you are in Kochi, India rather than Kochi, Japan?)

    Regards
    Alastair
    Attached Files Attached Files

  3. #3
    Registered User
    Join Date
    12-05-2013
    Location
    kochi
    MS-Off Ver
    Excel 2003
    Posts
    10

    Re: Q-2 Macro code for date and time in protected excel file when if condition applicabl

    Alastair,

    I'm really thankful for your efforts and time. Yes i'm from India

    Thanks
    Ajesh

+ 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. Macro help: Adding Code to save file or email based on a condition
    By slu2383 in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 12-26-2012, 01:39 PM
  2. Code Applicable for any workbook which is open
    By vidyuthrajesh in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 03-03-2012, 11:38 AM
  3. [SOLVED] VBA code for xlsm file's Last Modified Date/Time
    By btmtdk in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 03-03-2012, 12:38 AM
  4. [SOLVED] Macro to save Excel file with date and time in the file name?
    By sonic_d_hog in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 01-05-2006, 02:00 PM
  5. Replies: 5
    Last Post: 09-20-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