Quantcast
Channel: Excel Help Forum - Excel Programming / VBA / Macros
Viewing all articles
Browse latest Browse all 50117

I need a Macro that doubles rows when criterias are matched

$
0
0
Hi Guys,

It is very important and any help will be very apprecciated please.Unfortunately I couldn't find out how to post an excel table as a clearer example, however you can have a look at the attached file.


I would need a Macro for doubling certain rows when the some criteria are matched. It is very important and any help will be very apprecciated please.

Example:

A B C D
NL10 8EF0.030.01.4 SeriesCEEE17(CZ-PL-SK-HU-GR)v4
NL10 8EF0.054.00 WE (UK-IE-BE-NL-LU) HW+SW
NL10 8EF0.054.01.2 WE (FR-IT-CH) HW+SW Assy v2
NL10 8EF0.054.02 WE (SE-NO-DK-FI) HW+SW Assy
NL10 8EF0.054.03 WE (ES-PT) HW+SW Assy
US20 8EF0.017.00 US-CA HWSW Assy
US20 8EF0.017.01 US HWSW Assy
NL10 8GC0.016.10 RIDER 3 CE (DACH) HW+SW assy
NZ10 8EF0.054.02 WE (SE-NO-DK-FI) HW+SW Assy
AU10 8EF0.054.03 WE (ES-PT) HW+SW Assy


I need that when in column "B" there is "NZ10,US20 or AU10" and when in Column "D" there is "DACH or CH" macro must create double lines beneath the originalas below :




A B C D
NL10 8EF0.030.01.4 SeriesCEEE17(CZ-PL-SK-HU-GR)v4
NL10 8EF0.054.00 WE (UK-IE-BE-NL-LU) HW+SW
NL10 8EF0.054.01.2 WE (FR-IT-CH) HW+SW Assy v2
NL11 NL40 8EF0.054.01.2 WE (FR-IT-CH) HW+SW Assy v2
NL10 8EF0.054.02 WE (SE-NO-DK-FI) HW+SW Assy
NL10 8EF0.054.03 WE (ES-PT) HW+SW Assy
US20 8EF0.017.00 US-CA HWSW Assy
NL11 US20 8EF0.017.00 US-CA HWSW Assy
US20 8EF0.017.01 US HWSW Assy
NL11 US20 8EF0.017.01 US HWSW Assy
NL10 8GC0.016.10 (DACH) HW+SW assy
NL11 NL40 8GC0.016.10 CE (DACH) HW+SW assy
NZ10 8EF0.054.02 WE (SE-NO-DK-FI) HW+SW Assy
NL11 NZ10 8EF0.054.02 WE (SE-NO-DK-FI) HW+SW Assy
AU10 8EF0.054.03 WE (ES-PT) HW+SW Assy
NL11 AU10 8EF0.054.03 WE (ES-PT) HW+SW Assy[/td]



Sample.jpg
Attached Files

Viewing all articles
Browse latest Browse all 50117

Trending Articles