Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
mevetts
 
Posts: n/a
Default Insert date then lock cell!


Hi,

Is it possible to have the formula =TODAY(), but when entered into a
cell is then locked, so it doesn't alter the following day.

I want a button that when clicked, enteres this formula into the
selected cell, but once entered I want the cell to then lock so the
date does then not ever alter.

Can this be done?

Thanks,

Mark.


--
mevetts


------------------------------------------------------------------------
mevetts's Profile: http://www.excelforum.com/member.php...o&userid=29130
View this thread: http://www.excelforum.com/showthread...hreadid=494762

  #2   Report Post  
Posted to microsoft.public.excel.misc
Dave Peterson
 
Posts: n/a
Default Insert date then lock cell!

Don't use a formula. Just plop the date in directly--something like this in
your buttonclick code:


with activecell
.value = date
.numberformat = "mm/dd/yyyy"
end with



mevetts wrote:

Hi,

Is it possible to have the formula =TODAY(), but when entered into a
cell is then locked, so it doesn't alter the following day.

I want a button that when clicked, enteres this formula into the
selected cell, but once entered I want the cell to then lock so the
date does then not ever alter.

Can this be done?

Thanks,

Mark.

--
mevetts

------------------------------------------------------------------------
mevetts's Profile: http://www.excelforum.com/member.php...o&userid=29130
View this thread: http://www.excelforum.com/showthread...hreadid=494762


--

Dave Peterson
  #3   Report Post  
Posted to microsoft.public.excel.misc
mevetts
 
Posts: n/a
Default Insert date then lock cell!


Will give it a go, thanks.


--
mevetts


------------------------------------------------------------------------
mevetts's Profile: http://www.excelforum.com/member.php...o&userid=29130
View this thread: http://www.excelforum.com/showthread...hreadid=494762

  #4   Report Post  
Posted to microsoft.public.excel.misc
pinmaster
 
Posts: n/a
Default Insert date then lock cell!


Hi, another quick way to insert todays date in the selected cell is to
simply hit the CTRL + ; keys.

HTH
JG


--
pinmaster
------------------------------------------------------------------------
pinmaster's Profile: http://www.excelforum.com/member.php...fo&userid=6261
View this thread: http://www.excelforum.com/showthread...hreadid=494762

  #5   Report Post  
Posted to microsoft.public.excel.misc
mevetts
 
Posts: n/a
Default Insert date then lock cell!


Cheers Dave, got it working and it's just the job.

Mark.


--
mevetts


------------------------------------------------------------------------
mevetts's Profile: http://www.excelforum.com/member.php...o&userid=29130
View this thread: http://www.excelforum.com/showthread...hreadid=494762

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
How do I create a schedule from a list of dates ? Gavin Morris Charts and Charting in Excel 2 October 28th 10 04:08 PM
Date Range within one cell Cachod1 New Users to Excel 5 October 18th 05 03:30 AM
How to update a cell if a specific date is included in a date rang mgavidia Setting up and Configuration of Excel 2 October 8th 05 12:53 AM
Change cell color dependin on date ... T. Denford Excel Worksheet Functions 4 April 13th 05 01:59 AM
Adding a control button to insert a date in the active cell. Mike Excel Discussion (Misc queries) 2 February 15th 05 06:27 PM


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