Hi.
I want to be able to to mark cell C2 with an "X" and have cell B2 display the current date And Cell A2 display "Ordered".
I thought I had this working but the dates all change when the system date changes.
Charles
Hi.
I want to be able to to mark cell C2 with an "X" and have cell B2 display the current date And Cell A2 display "Ordered".
I thought I had this working but the dates all change when the system date changes.
Charles
Last edited by VBA Noob; 04-06-2008 at 12:08 PM.
Good afternoon mrdata
The shortcut combination to add todays date in a cell as a static (ir non changing) value is :
Ctrl + ;
HTH
DominicB
Please familiarise yourself with the rules before posting. You can find them here.
Well what I really wanted was for it to happen when the value x is in cell C2.Originally Posted by dominicb
You can't incorporate the shortcut in a funtion can you?
Charles
Hi mrdata
Try putting this into a normal module :
Now this formula in A2 :![]()
Please Login or Register to view this content.
=IF(C2="x","Ordered","")
...and this formula in B2 :
=IF(C2="x",StaticDate(),"")
HTH
DominicB
That works great! thank you so very muchOriginally Posted by dominicb
![]()
Charles
I thought the code worked but now my dates are changing to the current date instead of staying static.Originally Posted by mrdata
When I change the system date the dates stay the same but somehow they changed by themselves.
I can't replicate the problem or I would show you.
Charles
What would make the dates stay static on one computer but on another change as if no code was there.Originally Posted by dominicb
The same workbook is on two systems the code works fine on one but not the other both have the exact same version of office.
Could it be a setting in excel?
Charles
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks