Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 2
Default auto update of date

Dear all,
IN my pricing list
one is numeric in which i am entering prices and other one is date , which
gives me the information of on which date i received the prices for
particular product.
My problem is can i update the date of price automatically, once i update
the new price. Many times, I forget to change the date resulting i cant take
various decisions based on pricing.

  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 22,906
Default auto update of date

Auto means code in most instances.

Private Sub Worksheet_Change(ByVal Target As Range)
On Error GoTo ws_exit:
Application.EnableEvents = False
If Not Intersect(Target, Me.Range("A:A")) Is Nothing Then
With Target
If Not .Value = "" Then
.Offset(0, 1).Value = Format(Now, "dd mmm yyyy hh:mm:ss")
End If
End With
End If
ws_exit:
Application.EnableEvents = True
End Sub

As you enter a price in column A, a date/time will be entered in column B

This is event code. Right-click on the sheet tab and copy/paste into that
module.

Alt + q to return to Excel window.


Gord Dibben MS Excel MVP

On Fri, 22 Feb 2008 16:59:01 -0800, gibbs
wrote:

Dear all,
IN my pricing list
one is numeric in which i am entering prices and other one is date , which
gives me the information of on which date i received the prices for
particular product.
My problem is can i update the date of price automatically, once i update
the new price. Many times, I forget to change the date resulting i cant take
various decisions based on pricing.


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 you format an auto update to delete rows with expired date Rneedshelp Excel Worksheet Functions 0 May 29th 07 04:30 PM
How to auto update date contained in formula wmc New Users to Excel 4 April 18th 07 04:16 PM
How to auto update a cell with a current date Kell2604 Excel Discussion (Misc queries) 2 June 23rd 06 09:18 PM
canceling auto date update unexceller New Users to Excel 1 June 8th 06 07:40 AM
excel links update not working in auto, calculations in auto Mikey Boy Excel Worksheet Functions 0 December 7th 04 11:53 PM


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