Skip to content

Instantly share code, notes, and snippets.

@JakenHerman
Created November 5, 2014 15:44
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save JakenHerman/162ce58c957c6bacd151 to your computer and use it in GitHub Desktop.
Save JakenHerman/162ce58c957c6bacd151 to your computer and use it in GitHub Desktop.
Sub Pattern()
Dim i As Integer
Dim z As Integer
Dim y As Integer
Dim lastrow As Integer
Dim append
append = Array("Create", "Read", "Write", "Append", "Append To")
y = 1
Sheets("Input").Select
lastrow = Range("A65536").End(xlUp).Row
For i = 1 To lastrow
For z = 0 To 4
Sheets("Output").Range("A" & y) = Sheets("Input").Range("A" & i) & " " & append(z)
y = y + 1
Next z
Next i
End Sub
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment