OK, thanks for the tip. Here is is again:
----
I have this problem which has me stumped.
I want to show a date in the excel cell in the format "Jan-13" (for 1st January 2013). Instead I get an integer. The integer does not correspond to the date (41275 in this case), instead the integer represents, in this example, 13th January 2012 (40921). I cannot for the life of me understand where this number comes from.
Here's the code (not optimised, rather set up to debug this issue!). :
Another interesting point. If I assign the value to .Cells(r, 6), i.e. to a different column, then I get the same value, but it shows in Excel in a different format, "dd-MMM".
Any help understanding this would be much appreciated.
Mailbags
Bookmarks