A family of Microsoft spreadsheet software with tools for analyzing, charting, and communicating data.
Hi,
try this
in Active workbook
step1
in a regular module:
[Edit]
Sub macro1()
Dim wb1 As Workbook, wb2 As Workbook
Set wb1 = ThisWorkbook
Application.DisplayAlerts = False
Set wb2 = Workbooks.Open**(C:\MyDocuments\ExcelFiles\Workbook1.xlsx) '<<< change xlsx or xlsm**
wb1.Close True
Application.DisplayAlerts = True
End Sub
step2
double click on ThisWorkbook
and paste in...
Private Sub Workbook_Open()
Application.OnKey "^b", "macro1" ' <<< ctrl+b
End Sub
step3
Save As with extension xlsm (macros enabled)
close and re-open it
press Ctrl+b