Here is what I want to be able to do:
I want to be able to simply click on a cell and the current date appear in that cell and remain there even after a save. Is there any way to do this? Thanks in advance!
Here is what I want to be able to do:
I want to be able to simply click on a cell and the current date appear in that cell and remain there even after a save. Is there any way to do this? Thanks in advance!
Last edited by floyd605; 03-18-2011 at 10:25 AM.
Try this in the worksheet module
You will have to define the range it is to apply to, otherwise the sheet will be rendered all but uselessPlease Login or Register to view this content.
If you need any more information, please feel free to ask.
However,If this takes care of your needs, please select Thread Tools from menu above and set this topic to SOLVED. It helps everybody! ....
Also
اس کی مدد کرتا ہے اگر
شکریہ کہنے کے لئے سٹار کلک کریں
If you are satisfied by any members response to your problem please consider using the small Star icon bottom left of their post to show your appreciation.
Marcol, hat won't be static because you are entering the formula to the cell
Please Login or Register to view this content.
Last edited by royUK; 03-18-2011 at 10:23 AM.
Hope that helps.
RoyUK
--------
For Excel Tips & Solutions, free examples and tutorials why not check out my web site
Free DataBaseForm example
Good point Roy!
Please Login or Register to view this content.
Same comment as Post #2 still applies
Ok. Got that into the module. Now how do I apply it to certain cells in the worksheet? Sorry, I have no experience with working with these custom functions.
No problem, we are here to help you learn.
What Cell(s) do you want to apply the rule to?
Is it only on one sheet in the workbook?
Just finished a meeting and this project is no longer needed. Thanks so much for taking the time to help me with this anyway guys!
Okay , but for future reference
Please Login or Register to view this content.
This would then only work for Cell A2
Sheet protection might also come into play, but that can be addressed later if ever required.
Cheers
Thank you so much! I learned something today!
Thanks a lot for this code. Actually i was searching the same on excelforum and i found it. But my issue is little bit different. Actually, I want to continue this macro from H2 to H(maximum). Please tell us a code in which we can use this code from H2 to H(maximum).
Option Explicit
Private Sub Worksheet_SelectionChange(ByVal Target As Range)
If Target.Address(0, 0) = "A2" Then
If Target.Value = "" Then Target.Value = Date
End If
End Sub
Hi bodmas
Read the forum rules before the moderators get you...
Forum Rules
2. Don't post a question in the thread of another member -- start your own. If you feel it's particularly relevant, provide a link to the other thread.
If you can Edit/Delete your post, do so, if not you'll need to ask a moderator to help you.
Cheers
Hi there,
Could you tell me how this code can be modified to only work for the cell range C:4:K40?
Thanks
Its an old thread, I have forfeit this project.
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks