Hi E J  try this...

Sub testing()

Dim rng As Range
Dim rcount As Long
Dim cel As Range

rcount = Sheets(1).Cells(Rows.Count, "c").End(xlUp).Row
Set rng = Sheets(1).Range("c1:c" & rcount)

    For Each cel In rng
        If cel <> cel.Offset(1, 0) And cel <> "" Then
        cel.Offset(1, 0).Select
        ActiveCell.EntireRow.Insert
        End If
    Next cel

End Sub


Thanks & regards,

www.MrExcel4U.com <http://mrexcel4u.blogspot.com/>


On Fri, Mar 14, 2014 at 4:03 AM, E J <ejax...@gmail.com> wrote:

> Hi Everyone,
>
> I was wondering if I could get help with a macro. I'm trying to write a
> macro (with no luck) that walks down a column based on the initial
> placement of the active cell. Every time there are two cells with different
> data it adds two (or N rows).  It doesn't, however, view  blank cells as
> piece of data.
>
> I've attached an example of what a before and after would look like. Any
> help would be greatly appreciated.
>
> Sincerely
>
> -Ej
>
>
>  --
> Are you =EXP(E:RT) or =NOT(EXP(E:RT)) in Excel? And do you wanna be? It's
> =TIME(2,DO:IT,N:OW) ! Join official Facebook page of this forum @
> https://www.facebook.com/discussexcel
>
> FORUM RULES
>
> 1) Use concise, accurate thread titles. Poor thread titles, like Please
> Help, Urgent, Need Help, Formula Problem, Code Problem, and Need Advice
> will not get quick attention or may not be answered.
> 2) Don't post a question in the thread of another member.
> 3) Don't post questions regarding breaking or bypassing any security
> measure.
> 4) Acknowledge the responses you receive, good or bad.
> 5) Jobs posting is not allowed.
> 6) Sharing copyrighted material and their links is not allowed.
>
> NOTE : Don't ever post confidential data in a workbook. Forum owners and
> members are not responsible for any loss.
> ---
> You received this message because you are subscribed to the Google Groups
> "MS EXCEL AND VBA MACROS" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to excel-macros+unsubscr...@googlegroups.com.
> To post to this group, send email to excel-macros@googlegroups.com.
> Visit this group at http://groups.google.com/group/excel-macros.
> For more options, visit https://groups.google.com/d/optout.
>

-- 
Are you =EXP(E:RT) or =NOT(EXP(E:RT)) in Excel? And do you wanna be? It's 
=TIME(2,DO:IT,N:OW) ! Join official Facebook page of this forum @ 
https://www.facebook.com/discussexcel

FORUM RULES

1) Use concise, accurate thread titles. Poor thread titles, like Please Help, 
Urgent, Need Help, Formula Problem, Code Problem, and Need Advice will not get 
quick attention or may not be answered.
2) Don't post a question in the thread of another member.
3) Don't post questions regarding breaking or bypassing any security measure.
4) Acknowledge the responses you receive, good or bad.
5) Jobs posting is not allowed.
6) Sharing copyrighted material and their links is not allowed.

NOTE  : Don't ever post confidential data in a workbook. Forum owners and 
members are not responsible for any loss.
--- 
You received this message because you are subscribed to the Google Groups "MS 
EXCEL AND VBA MACROS" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to excel-macros+unsubscr...@googlegroups.com.
To post to this group, send email to excel-macros@googlegroups.com.
Visit this group at http://groups.google.com/group/excel-macros.
For more options, visit https://groups.google.com/d/optout.

Attachment: Macro help with additional row creation.xlsm
Description: application/vnd.ms-excel.sheet.macroenabled.12

Reply via email to