How to record the time when a checkbox was checked?

I would like to insert the value of NOW() at the moment when a checkbox is changed from unchecked to checked.
Having a programming background but now spreadsheet background, I can't find out how to do this seemingly easy thing.

Hello
It may appears as a
• simple task:
if the checkbox is B2,
in C2 enter =IF(B2=TRUE,NOW(),"")
The time will be displayed when you will check the box
• not so simple
the time displayed in c2 is a "living" one.
It will change each time when the sheet will recalculate. So the value will not be accurate.
Here is a script which will give an accurate result:
Enregistrer le script en tant qu'Application ou Progiciel : checkandtime.app
déplacer l'application créée dans le dossier
<VolumeDeDémarrage>:Users:<votreCompte>:Library:Scripts:Applications:Numbers:
Il vous faudra peut-être créer le dossier Numbers et peut-être même le dossier Applications.
Copier le contenu de la cellule "pseudo case à cocher" dans le presse-papiers.
Sortez de la cellule puis cliquez sur celle-ci
menu Scripts > checkandtime
Si vous travaillez avec Mac OS X 10.4.x, le script collera " " ou "X"
Si vous travaillez avec Mac OS X 10.5.x, le script collera un caractère Unicode coché/pas coché
S'il colle coché il colle également la date/heure dans la cellule adjacente
+++++++
Save the script as an Application or an Application Bundle: checkandtime.app
Move the newly created application into the folder:
<startup Volume>:Users:<yourAccount>:Library:Scripts:Applications:Numbers:
Maybe you would have to create the folder Numbers and even the folder Applications by yourself.
Copy the contents of the "fake checkbox" cell in the clipboard
Exit from the cell then click once in it.
menu Scripts > checkandtime
If you work with MacOS X 10.4.x the script will paste " " or "X"
If you work with MacOS X 10.5.x the script will paste an Unicode character: checked or unchecked
If it paste checked, it paste also the current date_time in the adjacent cell.
Yvan KOENIG le 27 mars 2008
--(SCRIPT checkandtime.app]
on run
set theApp to "Numbers"
try
set txtDatas to the clipboard as Unicode text
on error (*
The clipboard was empty *)
return
end try
log txtDatas
if txtDatas contains tab then return
set txtDatas to my applyMask(txtDatas, theApp)
log txtDatas
set the clipboard to txtDatas
my pasteIn(theApp)
end run
--=============
on pasteIn(the_App)
tell application the_App to activate
tell application "System Events" to tell (first process whose title is the_App) to keystroke "v" using {command down}
end pasteIn
--=============
on applyMask(t, the_App)
try
set v to (system attribute "sys1")
if (v's class is integer) then
set v to (v as string) & "." & (system attribute "sys2") & "." & (system attribute "sys3")
else
error
end if
on error
set v to (system attribute "sysv")
set v to ((v div 4096 * 10 + v mod 4096 div 256) as string) & "." & v mod 256 div 16 & "." & v mod 16
end try
if v < "
set faux to " "
else
set vrai to character id 9745
set faux to character id 9723
end if
if t is vrai then
return faux & tab & " "
else
return vrai & tab & (current date) as text
end if
end applyMask
--=============
--[/SCRIPT]
Yvan KOENIG (from FRANCE jeudi 27 mars 2008 14:32:26)

Similar Messages

  • Questions for the time when a mail is sent and arrives

    Hi, all
    I have a few questions for OCS but I can't find any informaiton for them.
    My customer asked me how to know the time when a mail is sent to and arrives a destination mailbox from the OCS database. My Questions are...
    1)
    There are two columns - 'INTERNAL_DATE' and 'RFC822_DATE' - in 'ES_HEADER' table that seem related to sending date. What is the difference between them?
    2)
    Can I know the time when a mail arrives the recipient's mailbox (or mail server) from the OCS database?
    3)
    What does the column 'RECEIVED_DATE' in ES_ENVELOPE table mean?
    I would appreciate if anyone lets me know links or websites where I can get informatin.
    (or if give answers to me directly, I would appreciate so much!)
    Thanks in advance.

    First to permanently delete every trace of Babylon try here '''cor-el''' reply:
    https://support.mozilla.com/en-US/questions/782060
    second to set google as home page see here:
    [http://support.mozilla.com/en-US/kb/How%20to%20set%20the%20home%20page How to set the home page]
    * try to update firefox because you are in beta version 4.0b10 and it is unsupported and beta(trail unstable version)
    thank you
    Please mark "Solved" the answer that really solve the problem, to help others with a similar problem.

  • How do i edit my billing info if my credit card associated with apple id expired and i have a duty to app store from the time when i had the old credit card?

    how do i edit my billing info if my credit card associated with apple id expired and i have a duty to app store from the time when i had the old credit card?
    so the thing is a few days ago i made an app store purchase and i didn't know i was running out of money on my credit card. i realized that only when i tried to purchase another item and it didn't work. nothing special til here. the problem is that meanwhile my credit card was replaced by a new one by the bank because the old one was soon expiring. So the data associated with the old credit card no longer exist.
    i tried to edit my billing info associated with my apple id in order to enter the new credit card data, but the system doesn't allow me to do that.
    so i can neither pay my purchase, nor edit my info, nor access app store anymore.
    what's next? any ideas? thanks

    Servers down wait till status is fixed to change or add your data http://www.apple.com/support/systemstatus/

  • Why doesn't siri know how to change the time of a reminder? When asked, "Do you want to confirm or cancel your reminder?" Reply, "Can I change the time to a half hour later?" Siri doesn't know how to respond.

    Why doesn't siri know how to change the time of a reminder? When asked, "Do you want to confirm or cancel your reminder?" Reply, "Can I change the time to a half hour later?" Siri doesn't know how to respond.

    Hi
    In iMovie'11 (version 9.0.x)
    on top menu row - Apple/iMovie/File/Edit/Cut (Can vary dep. on language - in Swedish Apple/iMovie/Arkiv/Redigera/Klipp . . . )
    down Cut menu - Slow playback/Raspid Playback/Re-play in Slow Motion and onvards
    Here one can select the Pre-Set speeds
    Are you familiar with getting 'inspector' to run?
    No - but I guess that Double Click on clip/sequense or ctrl-Click on it might open it.
    Yours Bengt W

  • Now that I've upgraded to Lion, about 50% of the time when I click the mouse it acts as if I've right clicked.  How do I get back to the way it was?!

    I am working on two macbooks and an imac.  I upgraded all the software last weekend and am now running all three computers on Lion.  Over the last week, about 50% of the time when I click the mouse (whether it be the "pad" mouse on the macbooks or the standard mouse on my imac) it acts as thought I've right-clicked.  How do I stop this insanity?!  I want my old no-right-click mouses back!
    Thank you for any guidance!
    Jennifer

    Try this,
         Go to to the Trackpad System Preference and look at the Point and Click tab.  
         Uncheck the box that says "Tap to Click"
    I found my track pad to be way too sensitive and I was finding myself in web pages I did not choose to go to.  Unchecking that box will make it so you have to press the track pad to make it click something as opposed to just tapping it.  It is more effort but also less sensitive to random taps.
    Jay

  • In Acrobat, I wrote a script to turn fields gray if a checkbox was checked. How can I get it to reset to white (or clear) when the reset form button is clicked?

    In Acrobat, I wrote a script to turn fields gray if a checkbox was checked. How can I get it to reset to white (or clear) when the reset form button is clicked?

    Thank you so much for your reply . . . but . . . I should have shared my original script with you -- it was a little more complicated than I led you to believer. I was triggering a group of text fields to become disabled as well as gray. Below is the original script so that when the checkbox is checked, it causes several "Co" fields to be disabled and gray.
    // Mouse Up script for check box 
    // If checked, certain fields should be disabled 
    var f_prefix = "Co"; 
    // Get a reference to all of the "Co" fields 
    var f = getField(f_prefix); 
    // Reset the Co fields 
    resetForm([f_prefix]); 
    if (event.target.value === "Off") { 
        // Enable the Co fields 
        f.readonly = false; 
        f.fillColor = color.transparent; 
    } else { 
        // Disable the Co fields 
        f.readonly = true; 
        f.fillColor = color.gray; 
    To recap -- my goal is to get those gray fields to revert to transparent if the form is reset. I'm willing to create my own custom "Reset Form" button but I'm not sure I understand how that would look. Wouldn't it be quite lengthy? I think I'm having a brain freeze -- can't figure it out!

  • How to find out the time when the ASE started?

    Normally, ASE not reboot for production. Only for maintenance or performance tuning, maybe need to reboot ASE.
    Question is how to find out the time when ASE was started?
    one way maybe is check errorlog. Any more simple way no need to login to server OS?

    Hi Kent,
    In ASE 12.5 and up, you can do 'select @@boottime'  For older releases, a general method is 'select crdate from sysdatabases where dbid=2'
    1> select @@boottime, crdate from sysdatabases where dbid=2
    2> go
                                     crdate
                 Jul 15 2014  9:19AM             Jul 15 2014  9:19AM
    (1 row affected)
    Cheers
    Dan

  • How to measure the time the cursor hovered over an hot spot

    Hi all,
    I have a task in which participants have to make a decision with two options. Therefore, I have created two hotspots, one for each option. What I want to measure is the time that the mousecursor 'hovers' over each option before a choice has been made (one of the two hotspots clicked). So for instance: if a user first hovers 2,5 seconds above option 1, then goes to option 2, hovers there for .45 seconds, then goes to option 1 again, hovering for .5 seconds before clicking, I want to save those two values (2.5 + .5 = 3.0 s for option 1 and .45 s for option 2) when either hotspot is clicked. I was thinking of using a conditional in my interaction icon using something similar to ObjecOver (which gives which display icon the cursor is currently over), but then have something like HotspotOver (which does not exist). Does anyone know how I can accomplish measuring these hovertimes?
    Regards,
    Frank

    The solution I came up with has five hotspots. First off a calculation icon: OptionTimes := [0,0]
    Then the interaction with the hotspots: single click option 1, cursor in area option 1, single click option 2, cursor in area option 2, finally a hotspot surrounding all others
    In the cursor in area type hotspot for option 1 I have the calculation:
    Option := 1
    OptionStartTime := SystemSeconds
    Hopefully you can see where this is going. There's a similar calc for option 2 in the cursor in area option 2. It just sets the Option number to 2. In the last hotspot that surrounds the others I have this:
    OptionTimes[Option] := OptionTimes[Option] + SystemSeconds - OptionStartTime
    When the user hovers over an option and then leaves, the hotspot surrounding the others catches them and records the time they spent. You also need that same calc in the response path for the two options to catch the time taken looking at the option just before clicking in their choice.
    Mike

  • How to display the time length of video (current time/ total time) ?

    Hi,everyone. I would like to ask how to display the time length of the video which show only in system example: it show the current time and total time? using AS 3.0.
    It there any information or solution to solve it? .
    I appreciate it any of you able to answer it. ^^
    Thank you.

    Hi,
    Actually I have this requirement for MAC OS 10.5. With the code you provided, I got the output as "6289375". When I changed the URL to point to my file (file:///Users/VPKVL/Desktop/MyRecord/tempAudio.wav), I am getting the below mentioned Exception:
    Exception in thread "main" javax.sound.sampled.LineUnavailableException: Failed to allocate clip data: Requested buffer too large.
         at com.sun.media.sound.MixerClip.implOpen(MixerClip.java:561)
         at com.sun.media.sound.MixerClip.open(MixerClip.java:165)
         at com.sun.media.sound.MixerClip.open(MixerClip.java:256)
         at TestWavLength.main(TestWavLength.java:13)The "tempAudio.wav" file is created by using java sound API. I am using the SSB USB Headphone Set to record the audio with the following settings for AudioFormat object:
    AudioFormat audioFormat = new AudioFormat(
              AudioFormat.Encoding.PCM_SIGNED, // the audio encoding
                                                            // technique
              48000.0F,// sampleRate the number of samples per second
              16, // sampleSizeInBits the number of bits in each sample
              2, // channels the number of channels (1 for mono, 2 for
                            // stereo, and so on)
              4, // frameSize the number of bytes in each frame
              48000.0F,// frameRate the number of frames per second
              false); // bigEndian indicates whether the data for a single
                            // sample is stored in big-endian byte order
                            // (false means little-endian)Can you please suggest where I am going wrong ?

  • How to get the Time Stamp if we use User Status

    Hi Gurus,
    We used User Status to control several Orders. Now we are required to get the "time stamp" when we change from one status to another, is that information available in the system?
    If not, how do we get the time when a user status is changed from one to another?
    please advice,

    Hi,
    To check such kind of changes you have to follow below path,
    Go to Status tab (Blue Ikon) --- >Extra -> Change Documents-> All- --- > Choose All Changes
    SAP note 390635 provide the possibility to write change records for process and production orders as modification.
    please refer this link also,
    [Link|https://www.sdn.sap.com/irj/sdn/profile?userid=3781605]
    Regards,
    R.Brahmankar

  • How can i set a form to read only when a checkbox it checked?

    How can i set a form to read only when a checkbox it checked?

    Hi,
    If you search the forums for Paul's example LockAllFields. This contains a function in a script object that you can call from the click event of the checkbox.
    Re: Saving Fillable Form as non-fillable PDF
    Good luck,
    Niall
    Assure Dynamics

  • I use Outlook for my email on the Safari web browser, and about 90% of the time when I want to attach a pdf or jpg file the email message will crash.

    I use Outlook for my email on the Safari web browser, and about 90% of the time when I want to attach a pdf or jpg file it fails and about 50% of the time when I want to send a standard text massage it will also fail and the email massage crashes. The only way I can get my Outlook to work is if I switch to Firefox web browser. I would rather not switch to a new web browser if I don't have to.
    It seems like what ever the problem is that its related the Safari web browser, because it works fine on the Firefox web browser.
    I think its some kind of plug-in failure because it giving me a LOC ERROR:
    LOC ERROR: Unable to locate localized string for resource ID 5007.
    How can I fix this Plug-in?
    And, yes my softwer is conpletly updated…

    That's an Outlook issue. You'll probably get better responses posting on the Office for Mac forums.

  • How to display the time 00:00:00 as blank?

    Dear Friends,
    I have created a new field GDF_9000_CREATED_AT in the normal screen (dynpro), the format is TIMS, however, when there is no value for it, is always display like "00:00:00" on the screen.
    So how to display the time 00:00:00 as blank in the normal screen (dynpro) when there is no value for it?
    Thanks a lot!!

    In screen PBO module:
            LOOP AT SCREEN.
              if screen-name EQ 'my_time' AND my_time EQ time_zero.
                screen-invisible = 'X'.
                screen-active = 0.
                MODIFY SCREEN.
              endif.
            ENDLOOP.
    I don't try this, but i think is true...
    Edited by: Marco Modenese on May 7, 2009 10:36 AM
    Edited by: Marco Modenese on May 7, 2009 10:36 AM

  • How to solve the problem when opening program illustrator cs6 ERROR: 16 It is WINDOWS 8.1 / 64 BIT help please

    how to solve the problem when opening program illustrator cs6
    ERROR: 16
    It is WINDOWS 8.1 / 64 BIT
    help please

    Thanks, Jeff! The file Adobe Setup Error.log contains the following information:
    02/14/14 07:20:26:474 | [INFO] |  | OOBE | DE |  |  |  | 8860 | DEVersion: 5.0.0.0
    02/14/14 07:20:26:475 | [INFO] |  | OOBE | DE |  |  |  | 8860 | Loading library from C:\Program Files (x86)\Common Files\Adobe\OOBE\PDApp\DECore\DE5\Setup.dll
    [    8860] Fri Feb 14 07:20:26 2014  INFO
    ::START TIMER:: [Total Timer]
    CHECK: Single instance running
    CHECK : Credentials
    Load Deployment File
    CHECK : Another Native OS installer already running
    Create Required Folders
    Assuming uninstall mode
    Lookup for master payload
    [    8860] Fri Feb 14 07:20:26 2014 ERROR
    DW040: The product "{893B3B44-0A1E-404B-8FE8-0A74509102A9}" is not installed. Cannot proceed with the uninstall
    [    8860] Fri Feb 14 07:20:26 2014  INFO
    :: END TIMER :: [Total Timer] took 6.90443 milliseconds (0.00690443 seconds) DTR = 579.338 KBPS (0.56576 MBPS)
    -------------------------------------- Summary --------------------------------------
    - 0 fatal error(s), 1 error(s), 0 warning(s)
    ERROR: DW040: The product "{893B3B44-0A1E-404B-8FE8-0A74509102A9}" is not installed. Cannot proceed with the uninstall
    Please search the above error/warning string(s) to find when the error occurred.
    These errors resulted in installer Exit Code mentioned below.
    Exit Code: 33 - The product is not installed, cannot uninstall.
    Please see specific errors and warnings for troubleshooting. For example, ERROR: DW040 ...

  • Flex 3 How to recording the voice to the local file.can u help sample souce code

    How to recording the voice to the local file.can u help sample souce code

    What? the link is not opening? Check once properly man.  If you need code here it is
    import flash.system.Security;
    import flash.media.Microphone;
    import flash.events.ActivityEvent;
    import flash.events.SampleDataEvent;
    import flash.events.StatusEvent;
    import flash.utils.ByteArray;
    import flash.media.Sound;
    import flash.events.MouseEvent;
    import flash.media.SoundChannel;
    import flash.events.Event;
    import org.bytearray.micrecorder.encoder.WaveEncoder;
    import flash.net.FileReference;
    var mic:Microphone;
    var soundBytes:ByteArray;
    var recBytes:ByteArray= new ByteArray();
    var sc:SoundChannel;
    var sound:Sound;
    recordBtn.addEventListener(MouseEvent.CLICK, getMic);
    stopBtn.addEventListener(MouseEvent.CLICK, stopRecording);
    playBtn.addEventListener(MouseEvent.CLICK, plays);
    saveBtn.addEventListener(MouseEvent.CLICK, saveAudio);
    function getMic(e:MouseEvent)
    soundBytes= new ByteArray();
    //returns an array that total mics available
    var totalMics:Array = Microphone.names;
    //mic is a singleton class gets microphone to record sound
    mic = Microphone.getMicrophone();
    //Sets the minimum input level that should be considered
    mic.setSilenceLevel(0);
    mic.rate = 44;
    //to capture microphone audio listen for this event
    mic.addEventListener(SampleDataEvent.SAMPLE_DATA, recordAudio);
    function recordAudio(e:SampleDataEvent)
    //capture the byte array data available with the event
    while (e.data.bytesAvailable)
    var soundData:Number = e.data.readFloat();
    soundBytes.writeFloat(soundData);
    function stopRecording(e:MouseEvent)
    mic.removeEventListener(SampleDataEvent.SAMPLE_DATA, recordAudio);
    //set the bytearray position to zero for playing from starting
    soundBytes.position = 0;
    function plays(e:MouseEvent)
    //intatiazle sound instance
    sound= new Sound();
    soundBytes.position = 0;
    //listen for the event when runtime requests new audio data.
    sound.addEventListener(SampleDataEvent.SAMPLE_DATA, playAudio);
    //play the sound with sound channel
    sc = sound.play();
    sc.addEventListener(Event.SOUND_COMPLETE, soundComplete);
    function playAudio(e:SampleDataEvent)
    //if audio bytes is greate than 4 read the recorded byte array data and write it into the sound
    for (var i=0; i<8192; i++)
    if (soundBytes.bytesAvailable > 4)
    var sample:Number = soundBytes.readFloat();
    e.data.writeFloat(sample);
    e.data.writeFloat(sample);
    function soundComplete(e:Event)
    sound.removeEventListener(SampleDataEvent.SAMPLE_DATA, playAudio);
    sc.stop();
    function saveAudio(e:MouseEvent)
    soundBytes.position = 0;
    //waveencoder class used to encodes bytearray data properly used to play properly after saving
    //you can get this api from below link
    //http://code.google.com/p/micrecorder/downloads/detail?name=MicRecorder%201.2.zip&can=2&q=
    var encod:WaveEncoder= new WaveEncoder();
    var byte:ByteArray = encod.encode(soundBytes,2);
    var file:FileReference= new FileReference();
    file.save(byte, “test.wav”);

Maybe you are looking for

  • How to make the text_field to editable in a adobe document in the WDA?

    Hi, expert, I meet a  problem when I develop a WDA. I hope to get your help. Thanks a lot. The following is my action: Action: 1. Make a pdf forms (interactive form) with textfield named “A_textfield” in the webdynpro application. The textfield is ed

  • GOS : Attachment list

    Hi All , I would like to disable the Change and Delete buttons for the Service : Attachment list in GOS. Please let me know how can i achieve this. Helpful answers will surely be rewarded. Thank you Srinivas

  • Back up & Restore PC HELP!!

    Okay, I have the iPhone 3GS on my Windows XP but it's dying (had it for a 3-4 years). I just purchased a new Dell with Vista. I have it up with itunes and ready to go BUT how can I sync my iphone with all the applications that have data in there on t

  • Alert Category missing in RWB and "Add Rule" button disabled

    Hi, 1) I have added an Alert category in ALRTCATDEF but this alert is not visible in Runtime workbench -> Alert configuration. I have even pressed the "Update Table" button but still the alert category is missing the table. 2) The "Add Rule" button i

  • Satellite A300D restarts all the time

    Hi, My Toshiba Satellite A300D 14P restarts all the time and i cant do anything! I turned it off last night and today when i pressed the power button it worked for 1-2 secs and then did a restart again and again. My display doesn't show anything (bec