Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
If all the numbers in the range are integers then:
Sub monica() For Each r In Selection r.Value = 10 * r.Value Next End Sub -- Gary''s Student - gsnu200737 "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 |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Gary-
What if they are not all integers - example: 1113-456 (and I need to add a zero at the end) to make it 1113-4560 (the dash needs to stay). Thanks!!!! "Gary''s Student" wrote: If all the numbers in the range are integers then: Sub monica() For Each r In Selection r.Value = 10 * r.Value Next End Sub -- Gary''s Student - gsnu200737 "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 |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Create a macro (or function) to jump cells | Excel Programming | |||
create a macro for copying certain data in cells | Excel Programming | |||
how do i create a macro that would check the contents of cells | Excel Discussion (Misc queries) | |||
how do i create a macro that would check the contents of cells | Excel Discussion (Misc queries) | |||
Create scenarios using macro and data in cells | Excel Programming |