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
- 3487 reads
Recent comments
5 years 41 weeks ago
6 years 27 weeks ago
6 years 39 weeks ago
6 years 42 weeks ago
6 years 43 weeks ago
6 years 48 weeks ago
7 years 4 weeks ago
7 years 5 weeks ago
7 years 5 weeks ago
7 years 5 weeks ago