Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hi
Im not quite sure what Im doing wrong... Based on a value in a list box, I want to insert a row in the prope alphabetical order. This is what I have: Private Sub CmdUpdateNew_Click() Sheet2.Activate Sheet2.Range("A4").Select For i = 4 To Range("A65536").End(xlUp).Row If Range("A" & i) Value ListNew.Value And Range("A" & i - 1).Value < ListNew.Value Then Rows(i).Insert Exit For End If Next i End Sub Any ideas or help will be REALLLY appreciated! Thanks! Sheen -- Message posted from http://www.ExcelForum.com |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Inserting a zero | Excel Discussion (Misc queries) | |||
inserting row | Excel Discussion (Misc queries) | |||
Inserting a row below | Excel Discussion (Misc queries) | |||
Inserting a row | Excel Programming | |||
Inserting a Row with VBA | Excel Programming |