LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 12
Default Keeping the date fixed

Hello,

I was wondering if I could get help to write a query for the scenario
whe

I enter a value in column A and a date appears in column B, which
stays fixed and does not change based on the current date. Also, if I
delete the value from Column A, then the date also gets deleted.

This is what I have so far:

Private Sub Worksheet_Change(ByVal Target As Excel.Range)
If Target.Column = 1 Then
Target.Offset(0, 1).Value = Now()
End If
End Sub

The problem is, as I said, if I delete the value from column A, the
date still stays in column B, which I don't want it to.

Any help will be great.

Thanks very much!
 
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
Keeping date from changing Richard Excel Discussion (Misc queries) 5 April 30th 08 02:57 AM
Difference between fixed and variable date RC Excel Programming 3 December 8th 06 01:55 PM
Fixed time and date jk Excel Discussion (Misc queries) 8 September 28th 06 08:01 AM
Keeping the format of a date Louise Excel Worksheet Functions 5 September 15th 06 12:05 PM
Keeping a date when today's date changes dps9460 New Users to Excel 2 June 3rd 06 04:25 AM


All times are GMT +1. The time now is 02:08 PM.

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"