Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2,824
Default Having input the current date in a cell I want to lock it

Maybe you could provide a macro to open Data|form and then when it closes, your
macro can do whatever you want.

Option Explicit
Sub testme01()
With ActiveSheet
.ShowDataForm
With .Cells(.Rows.Count, "Z").End(xlUp).Offset(1, 0)
.Value = Now
.NumberFormat = "mm/dd/yyyy hh:mm:ss"
End With
End With
End Sub


If you make it easy to run the macro (add a button from the forms toolbar and
assign the macro to this button), it might even work.

Jim Mc wrote:

I am running a macro to check info inputted by the form command. I want to
add the date and time at the moment the form is closed. I can do this but the
date and time changes as time moves on. How can I lock this data?


--

Dave Peterson

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 4,624
Default Having input the current date in a cell I want to lock it

Very nice, Dave.

In article , Dave Peterson
wrote:

Maybe you could provide a macro to open Data|form and then when it closes,
your
macro can do whatever you want.

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
Date label and current date in same cell Lost in Microbiology Excel Discussion (Misc queries) 1 January 26th 08 02:04 PM
Can I lock cell contents after current date is past? Excel User Greg Excel Worksheet Functions 0 January 16th 06 06:47 PM
Lock in current date Angus Excel Discussion (Misc queries) 1 January 12th 05 05:27 PM
Having input the current date in a cell I want to lock it JE McGimpsey Excel Programming 0 August 26th 04 08:20 PM
Having input the current date in a cell I want to lock it Frank Kabel Excel Programming 0 August 26th 04 04:37 PM


All times are GMT +1. The time now is 04:51 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"