ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   How to format cells to General via vba (https://www.excelbanter.com/excel-programming/443461-how-format-cells-general-via-vba.html)

Simon[_2_]

How to format cells to General via vba
 
Some cells are pasted in from external sources as a date. I used the
record and play option but it didn't pick up how to format cells as
General.

How is this possible?

Thanks

Peter T[_5_]

How to format cells to General via vba
 
rng.NumberFormat = "General"

Regards,
Peter T

"Simon" wrote in message
...
Some cells are pasted in from external sources as a date. I used the
record and play option but it didn't pick up how to format cells as
General.

How is this possible?

Thanks



Simon[_2_]

How to format cells to General via vba
 
On Aug 5, 5:36*pm, "Peter T" wrote:
rng.NumberFormat = "General"

Regards,
Peter T

"Simon" wrote in message

...



Some cells are pasted in from external sources as a date. *I used the
record and play option but it didn't pick up how to format cells as
General.


How is this possible?


Thanks- Hide quoted text -


- Show quoted text -


Cheers Pete


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

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