Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
Repeat keystrokes to delete character in column
Hi,
I have a column with mobile telephone numbers. e.g. 0846578902. (The cell is format to text not number) Now I need to add a 27 in front of each to become 27846578902 I'm sure this can be done with a macro but am not too familiar with vb. I had seen this in an earlier thread; Sub Remove4() Dim myCell As Range For Each myCell In Selection myCell.Value = Left(myCell.Value, Len(myCell.Value) - 4) Next myCell End Sub But that deletes the last 4 characters. 'm not sure how it is identifying the last 4! |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
adjusting column width using keystrokes | Excel Discussion (Misc queries) | |||
How do I repeat a character in a cell in Excel as / did in Lotus? | Excel Discussion (Misc queries) | |||
need macro script - repeat to delete 2 rows | Excel Discussion (Misc queries) | |||
Need keystrokes equivalent to dragging one column heading onto ano | Excel Discussion (Misc queries) | |||
How to program an excel macro to repeat a series of keystrokes? | Excel Discussion (Misc queries) |