Skip to content

Instantly share code, notes, and snippets.

@WyattCast44
Created November 20, 2020 20:01
Show Gist options
  • Save WyattCast44/6b3a670253ec2d1606d27883eaabddb4 to your computer and use it in GitHub Desktop.
Save WyattCast44/6b3a670253ec2d1606d27883eaabddb4 to your computer and use it in GitHub Desktop.
Public Function getSheetByName(name)
Set getSheetByName = ActiveWorkbook.Sheets(name)
End Function
Public Function getCellBackgroundColor(sheet, cell)
getCellBackgroundColor = getSheetByName(sheet).Range(cell).Interior.Color
End Function
Public Function getCellTextColor(sheet, cell)
getCellTextColor = getSheetByName(sheet).Range(cell).Font.Color
End Function
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment