Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.programming
|
|||
|
|||
macro in excel
how can i create a macro to seperate lines by a uniqe value.e.g if i have
john doe for 10 lines and johnsmith for 20 lines, is there a macro to sperate each unique value? |
#2
Posted to microsoft.public.excel.programming
|
|||
|
|||
macro in excel
Hi
Try something like this: Sub InsertRow() TargetCol = "A" FirstRow = 2 LastRow = Range(TargetCol & 1).End(xlDown).Row For rw = LastRow To FirstRow + 1 Step -1 If Range(TargetCol & rw) < Range(TargetCol & rw - 1) Then Rows(rw).EntireRow.Insert End If Next End Sub Regards, Per "Macro To Seperate Unique value" . com skrev i meddelelsen ... how can i create a macro to seperate lines by a uniqe value.e.g if i have john doe for 10 lines and johnsmith for 20 lines, is there a macro to sperate each unique value? |
#3
Posted to microsoft.public.excel.programming
|
|||
|
|||
macro in excel
See also your post from 4 minutes ago.
Not necessary to multi-post. Wastes a lot of time and effort. Gord Dibben MS Excel MVP On Thu, 18 Feb 2010 11:20:01 -0800, Macro To Seperate Unique value . com wrote: how can i create a macro to seperate lines by a uniqe value.e.g if i have john doe for 10 lines and johnsmith for 20 lines, is there a macro to sperate each unique value? |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
Macro Help Needed - Excel 2007 - Print Macro with Auto Sort | Excel Worksheet Functions | |||
My excel macro recorder no longer shows up when recording macro | Excel Discussion (Misc queries) | |||
Call macro stored in Excel workbook from Outlook's macro | Excel Programming | |||
Need syntax for RUNning a Word macro with an argument, called from an Excel macro | Excel Programming | |||
translate lotus 1-2-3 macro into excel macro using excel 2000 | Excel Programming |