Hey, I have currently made a macro to add 3 columns before the last column with data, but I need the last column out of these 3 added and also first row to be always different colour (it doesn't have to be random, just a range of 10 colors repeating). This is what it looks like:
Thank you very much for your help !!
VBA Code:
Sub ADD()
Dim LastCol As Long
Dim Lastrow As Integer
'COPY
Columns("A:C").Copy
'COLUMNS
LastCol = ActiveSheet.Cells.Find(What:="*", SearchDirection:=xlPrevious, SearchOrder:=xlByColumns).Column
Columns(LastCol).Insert
'DELETE DATA
Columns(LastCol).Range("A3:B3" & Lastrow).ClearContents
'CHANGE OF COLOR
Columns(LastCol).Range("A1:C1").Interior.ColorIndex = 4
Columns(LastCol).Offset(, 2).Interior.ColorIndex = 4
End Sub
Thank you very much for your help !!