ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   How do I create a macro to add a zero to end of a cell? or cel (https://www.excelbanter.com/excel-programming/395687-re-how-do-i-create-macro-add-zero-end-cell-cel.html)

Monica

How do I create a macro to add a zero to end of a cell? or cel
 
Mike - Actually, do have an issue - what if they aren't all integers but
rather..

1113-456 (and you want to add a zero)

Any input you could provide would be helpful -thx!

"Mike H" wrote:

Monica

Multiply by 10?

Sub lime()
Set myrange = Range("A1:A10")
For Each c In myrange
c.Value = c.Value * 10
Next
End Sub

Mike


"Monica" wrote:

Trying to create a macro to add a zero to the end of a cell or range of cells
-

Ie - if number is 123 it becomes 1230

Thanks



All times are GMT +1. The time now is 01:39 AM.

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