Home |
Search |
Today's Posts |
#1
![]() |
|||
|
|||
![]() Hi, Is it possible to add one more cell in the below work sheet code ("$A$10"). Private Sub Worksheet_Change(ByVal Target As Range) Dim iPos As Long On Error GoTo ws_exit: Application.EnableEvents = False With Target If .Address = "$B$8" Then If Len(.Value) 50 Then iPos = InStrRev(.Value, " ", 51) If iPos 0 Then .Offset(1, 0).Value = Right(.Value, Len(.Value) - iPos) .Value = Left(.Value, iPos) End If End If End If End With ws_exit: Application.EnableEvents = True End Sub thanks and regards nowfal -- nowfal ------------------------------------------------------------------------ nowfal's Profile: http://www.excelforum.com/member.php...o&userid=10003 View this thread: http://www.excelforum.com/showthread...hreadid=397325 |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Change case...help please | Excel Worksheet Functions | |||
Macro for changing text to Proper Case | Excel Worksheet Functions | |||
Opening a file with code without a set file name | Excel Discussion (Misc queries) | |||
Weekly Transaction Processing | Excel Worksheet Functions | |||
Macro to simply bring up the Find dialogue box?? | Excel Discussion (Misc queries) |