I would like my macro to stop after first criteria is met, I dont want it to loop through my spreadsheet as it has 100's of rows.
Type | SKU | Name | CategoriesAA2 | ||||||
simple | SS10-3000 | SS10-3000 | Play > Essentials Timber, Play > Multi-Age Combinations, Play | ||||||
simple | SS10-3001 | SS10-3001 | Play > Essentials, Play > Multi-Age Combinations, Play | ||||||
simple | SS11-3000 | SS11-3000 | Play > Essentials, Play > Multi-Age Combinations, Play | ||||||
simple | SS12-3000 | SS12-3000 | Play > Essentials, Play > Multi-Age Combinations, Play | ||||||
simple | SS1-3000 | SS1-3000 | Play > Essentials, Play > Multi-Age Combinations, Play | ||||||
simple | SS13-3000 | SS13-3000 | Play > Essentials, Play > Multi-Age Combinations, Play | ||||||
simple | SS17-3000 | SS17-3000 | Play > Essentials Timber, Play > Multi-Age Combinations, Play | ||||||
simple | SS21-3000 | SS21-3000 | Play > Essentials, Play > Multi-Age Combinations, Play | ||||||
simple | SS2-3000 | SS2-3000 | Play > Essentials, Play > Multi-Age Combinations, Play |
VBA Code:
Sub PlayEssentials()
Dim c As Range
Dim d As Range
For Each c In Range("A1:A1000")
For Each d In Range("J1:J1000")
If c.Value Like "*Type*" And d.Value Like "*Play > Essentials*" Then
c.EntireRow.Resize(3).Insert
c.Offset(-1).Value = "Play Essentials"
End Sub