![]() |
![]() |
|
|||||||
| Excel Questions All Excel/VBA questions - formulas, macros, pivot tables, general help, etc. Please post to this forum in English only. |
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
Guest
Posts: n/a
|
Ok, the problem I am having is that I have created a basic macro to automatically add the date to my spreadsheet when a button is clicked. I used the short cut "Ctrl ;" to add the date but the problem is when i go to run the macro the next day it adds yesterday's date again. I was wondering if anyone knew how I could fix this problem? Thanks for your help, Bex
|
|
|
|
#2 |
|
Board Regular
Join Date: Feb 2002
Location: Houston,Texas
Posts: 418
|
=TODAY() will put today's date in a cell whenever you open the workbook. Of course every time you open it, you will get that day's date.
|
|
|
|
|
|
#3 |
|
Board Regular
Join Date: Feb 2002
Location: Houston,Texas
Posts: 418
|
Sorry, the word macro went right over my head. In VBA use DATE.
|
|
|
|
|
|
#4 |
|
Guest
Posts: n/a
|
Thank you very much Steve, that was a great help, Bex
|
|
![]() |
| Bookmarks |
| Thread Tools | |
| Display Modes | |
|
|