Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hi Folks
I have the following macro that cuts the front 6 characters out of a cell and pastes that data in another cell. I have tried but can't modify it to cut the last 5 characters from a cell and paste them in another cell. I swear I'm missing something really easy here. All help much appreicated. Sub MoveAround() Dim CellVal As String CellVal = ActiveCell.Text Range(ActiveCell.Address) = Right(CellVal, Len(CellVal) - 6) ActiveCell.Offset(0, 1).Select Range(ActiveCell.Address) = Left(CellVal, 6) ActiveCell.Offset(1, -1).Select End Sub |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
help with a simple macro | Excel Discussion (Misc queries) | |||
Simple (?) Macro | Excel Discussion (Misc queries) | |||
Need Simple Macro | New Users to Excel | |||
Simple Macro | Excel Discussion (Misc queries) | |||
Help with simple(?) macro | Excel Programming |