![]() |
|
|
|
#1
|
|||
|
|||
|
sorry, there is .. but even the name of the video says something else than your original post does (How to subtract dates from cell to cell in a table in Excel 2010)
Please save my time and try to be more explicit... |
|
#2
|
|||
|
|||
|
Yeah... sorry... my last post was misleading...
But thanks for your macros. I'm looking deep at it now and try to figure out this. |
|
#3
|
|||
|
|||
|
I can get the number of days when I click run the macro datesubs, not auto_open.
When I click auto_open, nothing happens. But when I run those two macros, I double click any cells and press "enter". It shows the error message: "Cannot run the macro [my xlsm file location]. The macro may not be available in this workbook or all macros may be disabled." |
|
#4
|
|||
|
|||
|
here is a sample attached...
Make sure you have macro security set to "disable all macros, with notification" and when you open this workbook, in the message bar click options-enable this macro |
|
#5
|
|||
|
|||
|
Quote:
The only thing that goes wrong is that when I expand the table (I set the A column a table) but for whatever reasons I didn't enter a new date. So the lastrow is empty, Excel asks me to debug the line: Code:
Cells(1, 1).Value = Cells(lastrow, 1).Value - Cells(2, 1).Value |
|
#6
|
|||
|
|||
|
can you attach a sample of your worksheet?
|
|
#7
|
|||
|
|||
|
My Fiance.xlsm
The sample data is just meaningless, nothing personal. The error occurs when Ya leave the last row blank and double click any cell and press ENTER. |
|
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Date formatting | kjxavier | Excel | 0 | 08-10-2011 08:17 AM |
Need a date formula
|
MPAVLAS | Excel | 3 | 08-12-2010 10:04 PM |
Julian Date
|
windseaker | Excel | 1 | 02-14-2010 01:44 AM |
| new appointment date always reverts back to today's date | msills | Outlook | 0 | 08-24-2007 08:57 AM |
Imported message date change to today's date
|
promark | Outlook | 1 | 12-23-2005 07:21 AM |