Home |
Search |
Today's Posts |
|
#1
![]() |
|||
|
|||
![]()
I want to program excel to automatically input the "static date" as I input
text characters in another cell. I've been able to achieve that already in a similar fashion, however, I don't want the date to change everytime I open the excel file. Once the date has been entered, I'd like for it to be simple text and not linked to the computer's time and date stamp. Anyone ever tried this before? |
#2
![]() |
|||
|
|||
![]()
You would need a Worksheet_Change event. For example, the
code below inputs the the current time into column B when text is entered into the adjacent cell in col. A: Private Sub Worksheet_Change(ByVal Target As Excel.Range) If Target.Column 1 Then Exit Sub If Target.Count 1 Then Exit Sub Application.ScreenUpdating = False With Target.Offset(, 1) .Value = Format(Now, "mm/dd/yy") Application.ScreenUpdating = True End With End Sub ----- Right-click on the worksheet tab, View Code, and paste this into the window. HTH Jason Atlanta, GA -----Original Message----- I want to program excel to automatically input the "static date" as I input text characters in another cell. I've been able to achieve that already in a similar fashion, however, I don't want the date to change everytime I open the excel file. Once the date has been entered, I'd like for it to be simple text and not linked to the computer's time and date stamp. Anyone ever tried this before? . |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
date format within a cell containing a formula | Excel Discussion (Misc queries) | |||
Formula with text and reference to a date cell | Excel Discussion (Misc queries) | |||
Addition to Turn cell red if today is greater or equal to date in cell | New Users to Excel | |||
cell assumes wrong date | Setting up and Configuration of Excel | |||
Extract date from cell | Excel Worksheet Functions |