XLA routines: EE_ColorSheetTabs
EE_ColorSheetTabs is an easy sub that takes a range of coloured cells with sheet tab names in it.
- colours the sheet tabs in accordance with the cell colour.
Sub EE_ColorSheetTabs(rngColor As range) Dim rngEach As range Dim wbk As Workbook 'http://excelexperts.com/xla-routines-eeColorSheetTabs for updates on this sub routine Set wbk = ThisWorkbook For Each rngEach In rngColor On Error Resume Next wbk.Worksheets(rngEach.value).Tab.Color = rngEach.Interior.Color Err.Clear: On Error GoTo 0: On Error GoTo -1 Next rngEach Set rngEach = Nothing Set wbk = Nothing End Sub
»
- Nick's blog
- Login or register to post comments
- 3450 reads
Recent comments
5 years 36 weeks ago
6 years 22 weeks ago
6 years 34 weeks ago
6 years 37 weeks ago
6 years 38 weeks ago
6 years 43 weeks ago
6 years 52 weeks ago
7 years 2 days ago
7 years 3 days ago
7 years 3 days ago