您可以这样做,按钮为它们执行复制操作,然后设置颜色。
Option Explicit
Sub CopySetColor()
Dim strWkb As String, strSheet As String
strWkb = ThisWorkbook.Name
strSheet = ActiveSheet.Name
'get Workbook name to copy to -> ensure that only 2 workbooks are open, this and the one you want to copy to
Dim wkb As Workbook, wkbCopyTo As Workbook
For Each wkb In Workbooks
If wkb.Name <> strWkb Then
Set wkbCopyTo = wkb
Exit For
End If
Next
Sheets(strSheet).Copy Before:=wkbCopyTo.Sheets(1)
CSAColorFormattingSSRS2008 strWkb
End Sub
Sub CSAColorFormattingSSRS2008(strName As String)
ActiveWorkbook.Colors = Workbooks(strName).Colors
End Sub