This is probably something super easy, but I'm not a macro guy, so help is much appreciated. I have a macro I created that is taking certain sections of a table and pasting them into another workbook. However, right now I can only get the macro to paste into the active sheet of the other workbook. I want my selected cells to be pasted to a specific sheet with the name "Budget". The same with going back to my original workbook I want to make sure it is taking the selection from sheet name "BudgetExport" My macro code is below.
Code:
Sub BudgetExport()
'
' BudgetExport Macro
' To Export Budget
'
' Keyboard Shortcut: Ctrl+Shift+X
'
Range("D5").Select
Range(Selection, Selection.End(xlToRight)).Select
Range(Selection, Selection.End(xlToRight)).Select
Range("D5:O21").Select
Selection.Copy
Windows("Budget Updated.xlsb").Activate
Range("D5").Select
Selection.PasteSpecial Paste:=xlPasteValues, Operation:=xlNone, SkipBlanks _
:=False, Transpose:=False][/COLOR]
Windows("Budget Creator.xlsb").Activate
Range("D24").Select
Range(Selection, Selection.End(xlToRight)).Select
Range("D24:O25").Select
Range(Selection, Selection.End(xlDown)).Select
Range("D24:O88").Select
Application.CutCopyMode = False
Selection.Copy
Windows("Budget Updated.xlsb").Activate
Range("D24").Select
Selection.PasteSpecial Paste:=xlPasteValues, Operation:=xlNone, SkipBlanks _
:=False, Transpose:=False
Windows("Budget Creator.xlsb").Activate
ActiveWindow.SmallScroll Down:=-40
Range("D24").Select
ActiveSheet.Paste
Application.CutCopyMode = False
Range("R8").Select
End Sub