Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
sandy.cariappa
 
Posts: n/a
Default Excel Cell Restrictions


Ola: Fab formula, its working fine. Now i have restrited my users to
enter only the system time. I have now 2 more challenges which have
cropped up for which i need you advise

1. The cell accepts system time in hour and minute format only but does
not record the seconds format. It would be fantastic if I could track
time in the following format : hh/mm/ss (system time)

2. Is there an option with which i can lock a cell the moment a user
enters the current system time? Eg: Start time : 10:00:01 (The moment
the user inputs this time fomat the cell should automatically get
locked and no one should be able to amend this cell apart from myself -
Automated Password lock)

Thanks again for the fab formula as its made my life a little easier.

Awaiting your response at the earleist

Cheers Ola

SandstorM


--
sandy.cariappa
------------------------------------------------------------------------
sandy.cariappa's Profile: http://www.excelforum.com/member.php...o&userid=23603
View this thread: http://www.excelforum.com/showthread...hreadid=372824

  #2   Report Post  
wizard5353
 
Posts: n/a
Default


Hi,

For question 1 just right click on the cell with the time and change
the cell format to to time and select the hh:mm:ss type. But the
problem you will have now is that the CONT+SHIFT+: shortcut will only
get the time to minuets and not seconds so the time will always be :00
at the end.

It sounds like you are trying to build a timestamp from what you’re
asking. There is some great examples of time stamps here. Just do a
search and see what you find. Here is one I've used in the past:

Private Sub Worksheet_Change(ByVal Target As Excel.Range)
With Target
If .Count 1 Then Exit Sub
If Not Intersect(Range("A1"), .Cells) Is Nothing Then
Application.EnableEvents = False
With .Offset(0, 1)
.NumberFormat = "hh:mm:ss"
.Value = Time
End With
Application.EnableEvents = True
End If
End With
End Sub

This will look for data entered in to cell A1 and input the time in to
cell B1.

Question 2 can be done using worksheet protection and an event macro.

Hope that helps,

- NJ


--
wizard5353
------------------------------------------------------------------------
wizard5353's Profile: http://www.excelforum.com/member.php...o&userid=23692
View this thread: http://www.excelforum.com/showthread...hreadid=372824

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
Copy cell format to cell on another worksht and update automatical kevinm Excel Worksheet Functions 21 May 19th 05 11:07 AM
Excel should let me circle a cell or number in the spreadsheet fo. BTaylor Excel Discussion (Misc queries) 2 March 8th 05 03:00 PM
How Can I make a cell flash in Excel monir Excel Discussion (Misc queries) 0 February 4th 05 03:41 AM
Excel: how to formulate conditional cell references centraloffice Excel Worksheet Functions 1 December 10th 04 08:57 PM
Paste rows of numbers from Word into single Excel cell BecG Excel Discussion (Misc queries) 1 December 8th 04 04:55 PM


All times are GMT +1. The time now is 09:14 AM.

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

About Us

"It's about Microsoft Excel"