Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
I would like to write a macro to change all the used entries in column A
such that only the right most 5 characters are displayed for each entry. What would such a macro look like? |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Sub Right5()
Dim rng as Range, cell as Range Set rng = columns(1).specialCells(xlConstants) for each cell in rng cell.Value = right(cell.Value,5) Next End Sub -- Regards, Tom Ogilvy "jerry chapman" wrote in message ... I would like to write a macro to change all the used entries in column A such that only the right most 5 characters are displayed for each entry. What would such a macro look like? |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
need help changing column data | Excel Discussion (Misc queries) | |||
Changing Data in a Column | Excel Discussion (Misc queries) | |||
Changing entire column data | Excel Discussion (Misc queries) | |||
How to set up a column to accept changing data from 1 cell on ano. | Excel Worksheet Functions | |||
Changing the Direction of Data within a Column | Excel Worksheet Functions |