ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Excel macro (https://www.excelbanter.com/excel-programming/346630-excel-macro.html)

Nishant

Excel macro
 
can somebody help me in writing a macro that changes the date format in
a specified selection of cells. I want date to be changed from YYYYMMDD
to MM/DD/YYYY format and paste special on the same cells.


Niek Otten

Excel macro
 
Sub Macro1()
Selection.NumberFormat = "mm/dd/yyyy"
End Sub

--
Kind regards,

Niek Otten

"Nishant" wrote in message
ups.com...
can somebody help me in writing a macro that changes the date format in
a specified selection of cells. I want date to be changed from YYYYMMDD
to MM/DD/YYYY format and paste special on the same cells.





All times are GMT +1. The time now is 12:07 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com