ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Adding a 0 in front of a column of numbers (https://www.excelbanter.com/excel-programming/343875-adding-0-front-column-numbers.html)

scasawyer

Adding a 0 in front of a column of numbers
 
Hello All
I need a script to add a 0 infront of a column of numbers that are in text
format.

Thanks Scott



Ian

Adding a 0 in front of a column of numbers
 
Sub addzero()
For r = 1 To 100
Cells(r, "A").Value = "0" & Cells(r, "A").Value
Next r
End Sub


--
Ian
--
"scasawyer" wrote in message
...
Hello All
I need a script to add a 0 infront of a column of numbers that are in text
format.

Thanks Scott





All times are GMT +1. The time now is 07:21 PM.

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