Write a macro to put the current date and time in cell A1 on Sheet1. It should display the current date and time to the second. The time only has to change when you run the macro. Create a hotspot to run the macro.
Write a macro to put the current date and time in cell A1 on Sheet1. It should display the current date and time to the second. The time only has to change when you run the macro. Create a hotspot to run the macro.
Hello dlh116,
Welcome to the Forum!
What do you mean by a "hot spot"?
Sincerely,
Leith Ross
Remember To Do the Following....
1. Use code tags. Place [CODE] before the first line of code and [/CODE] after the last line of code.2. Thank those who have helped you by clicking the Star below the post.3. Please mark your post [SOLVED] if it has been answered satisfactorily.
Old Scottish Proverb...
Luathaid gu deanamh maille! (Rushing causes delays!)
I am not exactly sure. Those were the instruction I was given by my professor. I'm guessing it is supposed to be hot key.
This is a college question?
I believe a "hotspot" is more often used on web pages.
Is your professor teaching Excel?
Here's an example - click timer to update, as it appears to be homework you cn figure out how it's done
Last edited by royUK; 10-28-2009 at 03:51 PM.
Hope that helps.
RoyUK
--------
For Excel Tips & Solutions, free examples and tutorials why not check out my web site
Free DataBaseForm example
This would work for the macro. I assume he wants it assigned to a button (see attached worksheet).
Hope this works out...Please Login or Register to view this content.
Later
Last edited by royUK; 10-28-2009 at 04:20 PM. Reason: add code tags
YUNESM
Your post does not comply with Rule 3 of our Forum RULES. Use code tags around code. Posting code without them makes your code hard to read and difficult to be copied for testing. Highlight your code and click the # at the top of your post window. For more information about these and other tags, found here
You do not need to select cells in VBA. Your code adds the NOW formula to the cell, this will change whenever the sheet is updated
Last edited by royUK; 10-28-2009 at 04:19 PM.
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks