Hi, first attempt at using vba, but i've compiled an IF statement (below), this works fine, but how do i apply this to the rest of the column, the dataset i'm working on has potential to be 15000 lines of data, any help is appreciated
[VBA]Sub Format()
Dim Config As String
Config = ("AA4")
If Range("K4").Value = "CD" Or Range("K4").Value = "CD+" Then
Range(Config).Value = "1"
ElseIf Range("K4").Value = "CD+DVD more CD" Or Range("K4").Value = "SINGLE" Then
Range(Config).Value = "1"
ElseIf Range("K4").Value = "LP" Then
Range(Config).Value = "3"
ElseIf Range("K4").Value = "DVD" Then
Range(Config).Value = "60"
ElseIf Range("K4").Value = "DVD+CD more DVD" Then
Range(Config).Value = "69"
ElseIf Range("K4").Value = "Universal Media Disc" Then
Range(Config).Value = "90"
End If[/VBA]