time decision for open file in Excel
20 hours before current time is today,open file A
20 hours before current time is yesterday open file B. How can I use IF THEN function in EXCEL macro |
time decision for open file in Excel
if 20 hours before current time is today,then open file A
if 20 hours before current time is yesterday,then open file B, use below formula can work if (NOW ()-TIME(19,59,59)<TODAY (),"Y","N") but how to change it as excel macro such that "Y" become "open file A" and "N" become "open file B". Can I use IF ...THEN...to do this? thx! |
time decision for open file in Excel
it works,thx
|
All times are GMT +1. The time now is 01:18 PM. |
Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
ExcelBanter.com