I have a list of start times that need to be converted to 24 hour format. I changed the format for the entire column, but i have to press Enter for every row for excel to apply the new format.

Is there a was i can force excel to evaluate the cell format and change it. I have few thousand rows.

enter image description here

link|improve this question
feedback

migrated from stackoverflow.com Jun 20 '11 at 2:33

This question came from our site for professional and enthusiast programmers.

1 Answer

up vote 3 down vote accepted

Yes, it bugs me too.

dim c as range
for each c in application.intersect(activesheet.usedrange, activesheet.columns("C"))
  c.value = c.value
next
link|improve this answer
that worked great! – vpets Jun 20 '11 at 1:30
you're right, none of the usual methods work. – Lance Roberts Jun 20 '11 at 23:43
feedback

Your Answer

 
or
required, but never shown