Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.programming
|
|||
|
|||
autosorting two attached columns
I am creating an invoice with the following auto sort function:
Private Sub Worksheet_Change(ByVal Target As Range) Range("d10:d28").Sort Key1:=Range("d10"), Order1:=xlAscending, _ Header:=xlGuess, OrderCustom:=1, MatchCase:=False, Orientation:=xlTopToBottom End Sub D column is product codes, but the C column is quantities. such as: C D 4 95733 12 97003 1 55691 I need the quantities to move with the product codes when I enter new codes. The D column is sorting correctly, but the C column quantities stay put. Any help would be appreciated. |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
Keeping Adjacent Columns Attached to a Pivot Table | Excel Worksheet Functions | |||
AUTOSORTING | Excel Discussion (Misc queries) | |||
match two columns (with equal dates) and their attached datasets | Excel Discussion (Misc queries) | |||
AutoSorting | Excel Programming | |||
autosorting to a leaderboard | Excel Discussion (Misc queries) |