Microsoft Office Forums

Go Back   Microsoft Office Forums > >

Reply
 
Thread Tools Display Modes
  #1  
Old 05-26-2024, 10:41 PM
ArviLaanemets ArviLaanemets is offline When a value is selected for B2, auto-populate C2 with date that selection was made Windows 8 When a value is selected for B2, auto-populate C2 with date that selection was made Office 2016
Expert
 
Join Date: May 2017
Posts: 949
ArviLaanemets has a brilliant futureArviLaanemets has a brilliant futureArviLaanemets has a brilliant futureArviLaanemets has a brilliant futureArviLaanemets has a brilliant futureArviLaanemets has a brilliant futureArviLaanemets has a brilliant futureArviLaanemets has a brilliant futureArviLaanemets has a brilliant futureArviLaanemets has a brilliant futureArviLaanemets has a brilliant future
Default

As start, are you sure you want to do this really. Using shortcut for current date (for me it is Ctrl+Shift+Semicolon, but it depends on your local settings) in cell in column C is so easy, there is no real reason to take much insecure approach.



Anyway, when you are sure about this, then formula in not a way for this. There is no way to prevent it to be recalculated at some appropriate moment. You even don't need to change anything - it will be enough the user double-click on cell (the editing of cell is activated), and then move to another one, and the formula is recalculated (and the date is replaced with probably new current date).

The only possible way I can think of, is to write a worksheet's Change event, which checks for values in columns B and C of active row, and when B<>"" and C="", then enters current date into cell of column C of currently active row. To make this even more foolproof, the script can check for active cell, and insert the date only when active cell is in column B or C. But the event fires whenever you edit any cell of worksheet, and at least checks for values of cells in columns B and C of active row - i.e. it spends some time for it and your workbook slows down as result.
Reply With Quote
Reply



Similar Threads
Thread Thread Starter Forum Replies Last Post
Trying to have selected values from one column populate date selection was made in 3 other columns SnakeDoctor Excel 1 05-01-2024 12:45 AM
Auto populate text from a drop-down form field selection in Word atr792 Word VBA 2 07-11-2023 05:44 PM
Auto-populate text boxes with Excel data based on drop down box selection charkelham Word VBA 0 08-04-2021 04:38 AM
Auto populate weekday based on given cell/date kelwea Excel 6 05-20-2019 03:26 AM
When a value is selected for B2, auto-populate C2 with date that selection was made Auto populate cell with today's date Phil H Excel Programming 7 10-18-2017 09:41 AM

Other Forums: Access Forums

All times are GMT -7. The time now is 12:41 AM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2025, vBulletin Solutions Inc.
Search Engine Optimisation provided by DragonByte SEO (Lite) - vBulletin Mods & Addons Copyright © 2025 DragonByte Technologies Ltd.
MSOfficeForums.com is not affiliated with Microsoft