Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 55
Default Select the highest Date/Time stamp in a column, Show it in a MsgBoxand delete those after confirmation

Hello,

I'd like to create the following code;

In a sheet in column X in several records a date/time stamp is registered like "02/09/2017 / 08:40:27".

The registration of this datafield was a result that came from a code;

For Each cel In Range(Replace$(wrk, "A", "X")).Cells
cel.Value = DateValue(Now) & " / " & TimeValue(Now)
timestamp = DateValue(Now) & " / " & TimeValue(Now)


De code should look which date/time is the latest in this column, then shows a popupmessage box showing this latest date/time stamp and how many records have this, like:

MsgBox:
Latest stamp = "02/09/2017 / 08:40:27", Registered "12" times.
Will you delete this latest stamp in those fields Yes of Cancel.

This MsgBox should have action option buttons:
Cancel = Close action, do nothing.
Oke = Delete this latest date/time stamp in all the records were this is registered in column X.

When clicking Oke, the datafields with the latest date/time stamp are empty.

Can somebody please help me out with this.

regards,
Johan
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Show Time Stamp in Cell when Command Button Clicked RyanH Excel Programming 1 January 18th 08 04:16 PM
Comparing 2 files on date/time stamp, and based time difference do a subroutine [email protected] Excel Programming 1 September 28th 07 03:53 AM
Show time stamp when a value is entered TVCCBJB Excel Discussion (Misc queries) 4 September 8th 06 09:29 PM
Date stamp after value select from listbox?? mozart[_7_] Excel Programming 1 September 17th 05 02:32 PM
How do I format column containing date and time to only show the . ColoradoKid Excel Discussion (Misc queries) 5 December 18th 04 05:25 PM


All times are GMT +1. The time now is 11:45 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"