I have a macro that copies a worksheet and pastes it into another workbook. If I run the macro using the developer tab on the ribbon, everything works fine. However, if I assign a shortcut key to it (ctrl-shift-k) then the macro starts to run but doesn't complete the copy & paste operation. Can anyone explain what is going on? Thanks.
Excel 2007:
Excel 2007:
Code:
Sub makedge()
'
' makedge Macro
' Copy Daily Worksheet to a new file for e-mail
'
Sheets("Forecast Worksheet_Daily").Select
Cells.Select
Selection.Copy
Workbooks.Open Filename:= _
"S:\Financial Accounting\report2.xls"
Cells.Select
ActiveSheet.Paste
ActiveWorkbook.BreakLink Name:= _
"S:\Financial Accounting\report1.xls" _
, Type:=xlExcelLinks
Rows("94:101").Select
Selection.EntireRow.Hidden = True
Application.CutCopyMode = False
Range("a2").Select
ActiveWorkbook.Save
End Sub