+ Reply to Thread
Results 1 to 1 of 1

Date format refresh revisited

  1. #1
    Registered User
    Join Date
    09-20-2011
    Location
    Poland
    MS-Off Ver
    Excel 2010
    Posts
    1

    Date format refresh revisited

    Hello,

    I have an interesting problem with Excel vba and change of cell formating. Consider the following example. Below there is a column over which the vba script rolls and changes the format from General to Date (dd/mmm/yyyy). As you see, although the script touches each cell, the change is not everywehere succesful. (01-Apr-2010 is succesful but 28/04/2009 21:00:11 is not).

    In general I have observed that it is succesful in formatting a date with low day number.

    Below the sample column there is my script that formats the date.

    BTW I found on other forum that I have to add this special line that refreshes the cell:

    Please Login or Register  to view this content.
    but it clearly does not work. Any ideas??
    Even more interesting is that if i click on a cell to bring the cursor, the format changes as it should. I've tried to record the macro what is beneth my hand-clicking and found that it actually is cl.FormulaR1C1 !!!

    Sample Column
    28/04/2009 21:00:11
    01-Apr-2010
    01-Mar-2011
    28/04/2009 21:01:08
    01-Aug-2010
    01-May-2011
    28/04/2009 21:11:00
    18/02/2010 14:49:54
    23/02/2011 12:30:32
    28/04/2009 21:11:07
    19/02/2010 13:35:31
    18/02/2011
    28/04/2009 21:11:12
    22/02/2010 07:53:58
    24/02/2011 09:12:10
    28/04/2009 21:11:19
    22/02/2010 08:13:05
    24/02/2011 09:49:15
    28/04/2009 21:11:25
    22/02/2010 08:18:06
    24/02/2011 15:40:55

    Function formatting column:


    Please Login or Register  to view this content.
    Last edited by kmalysiak; 09-20-2011 at 11:53 AM.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1