[英]changing from day-month-year to day/month/year in execl
hi i have big table with unorganize date they made to formals 嗨,我有一张大桌子,上面有他们整理的正式日期
1- like this 20-12-2013
2- like this 20/12/2013
what i need to organize all the date to NO# form to use it in Sql 我需要将所有日期组织成NO#形式才能在Sql中使用它
thanks for you help 谢谢你的帮助
Hilight the cells you wish to convert and run this small macro: 点亮要转换的单元格并运行此小宏:
Sub DateFixer()
For Each r In Selection
With r
ary = Split(Trim(.Text), "-")
.Clear
.NumberFormat = "dd/mm/yyyy"
.Value = DateSerial(ary(2), ary(1), ary(0))
End With
Next r
End Sub
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.