I've got a friend who runs a DJ show for weddings. He wants me to create an excel sheet with about 8400 song titles, artist, album and track numbers so he can give it out for people to choose the songs they'd like played. He wants them to be able to open the excel sheet on their computer and click the CHECK box to highlight the entire row. I've set up about 20 check boxes (format control) and conditional conditional formatting (=$g2=TRUE()) to highlight the row YELLOW. Obviously 8400 songs going one by one is going to take forever and a day to do. Is there an easier way to do this? I found this event macro online from http://www.mvps.org/dmcritchie/excel/event.htm#case:
But I'm not too familiar with VBA...Private Sub Worksheet_Change(ByVal Target As Range)
'David McRitchie, 2004-09-26, programming, Case -- Entire Row
' http://www.mvps.org/dmcritchie/excel/event.htm#case
If Target.Column <> 6 Then Exit Sub 'Column F is column 6
If Target.Row = 1 Then Exit Sub
Application.EnableEvents = False 'should be part of Change macro
Select Case LCase(Target.Value)
Case "yes"
Target.EntireRow.Interior.ColorIndex = 34
Case "no"
Target.EntireRow.Interior.ColorIndex = 36
Case Else
Target.EntireRow.Interior.ColorIndex = xlColorIndexAutomatic
End Select
Application.EnableEvents = True 'should be part of Change macro
End Sub
I appreciate any help anyone is able to provide in making this tedious task go a little faster. I've uploaded what I'm working with as well...
Nick
Bookmarks