LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
Bob Bob is offline
external usenet poster
 
Posts: 972
Default Date stamping based on cell value

I have a worksheet containing project-related information. In particular:

Column D = Status Code (0 - 20); Code "11" = On-Hold, Code "12" = Cancelled
Column DT = Project Hold Date
Column DU = Project Un-Hold Date
Column DV = Project Cancelled Date
Column DW = Project Un-Cancelled Date

I'm trying to write a macro whereby if a user inputs Code "11" in Column D
for a given project, the current date would automatically be entered in
Column DT. Later on, if the Code is changed to anything but Code 11 (except
for Code 12), the current date would automatically be entered into Column DU.

If a user inputs Code "12" in Column D for a given project, the current date
would automatically be entered in Column DV. Later on, if the Code is
changed to anything but Code 12 (except for Code 11), the current date would
automatically be entered into Column DW.

Also, it would be nice if the macro displayed an error message if a user
attempts to indicate that a project is on Hold or Cancelled more than once
(i.e., check to see if columns DT - DW already contain a date).

Any help would be greatly appreciated.
Thanks,
Bob

 
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
Automatic date stamping PK Excel Discussion (Misc queries) 16 December 13th 09 10:04 PM
Date stamping a cell change Mustang Excel Discussion (Misc queries) 3 July 15th 09 11:17 PM
Date and time stamping with a (macro) button ArcticWolf Excel Worksheet Functions 4 July 10th 08 12:26 PM
Time Stamping A Cell Time Excel Discussion (Misc queries) 3 March 8th 07 01:51 PM
Date and time stamping multiple cells for multiple entries. Gerald Excel Worksheet Functions 1 May 9th 06 01:45 PM


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