Home |
Search |
Today's Posts |
#4
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]() OK, I I think I tried what was recommended above he Private Sub Worksheet_Activate() avoidloop = True End Sub Private Sub Worksheet_Change(ByVal Target As Range) On Error GoTo errorhandler If avoidloop And Trim(Target) < "" Then If Target = "1" Then Range("C2").Select Application.SendKeys "{F2}" Else Select Case (ActiveCell.Column) Case 1 avoidloop = False If UCase(Left(ActiveSheet.Rows(2).Columns(1).Value, 8)) = UCase(Left(Target, 8)) Then ActiveSheet.Rows(ActiveCell.Row - 1).Columns(1).Value = Target ActiveSheet.Rows(ActiveCell.Row - 1).Columns(2).Value = "" avoidloop = True Else ActiveSheet.Rows(ActiveCell.Row - 1).Columns(2).Value = Target ActiveSheet.Rows(ActiveCell.Row - 1).Columns(1).Value = "" ActiveSheet.Rows(10).Columns(3).Value = "9999" avoidloop = True End If Case 2 Case 3 If ActiveCell.Row = 3 Then If Target < "" Then SAVE_DATA (Target) End If Case Else End Select End If End If errorhandler: End Sub Is this it? -- Lil Pun ------------------------------------------------------------------------ Lil Pun's Profile: http://www.excelforum.com/member.php...o&userid=33840 View this thread: http://www.excelforum.com/showthread...hreadid=549758 |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Sorting characters, ignoring numbers | Excel Worksheet Functions | |||
ignoring text data in a cell when summing values in the same cell | New Users to Excel | |||
convert 5 characters in a cell to 6 characters by adding a zero | Excel Discussion (Misc queries) | |||
Ignoring characters when sorting | Excel Discussion (Misc queries) | |||
Ignoring characters in excel sheets when creating a chart | Charts and Charting in Excel |