larinda4
Board Regular
- Joined
- Nov 15, 2021
- Messages
- 73
- Office Version
- 365
- Platform
- Windows
Good morning,
I have this code below and I'm trying to tweak it to work for my situation. I'm trying to copy a sheet from a closed workbook into my current active workbook that's open. The location of the sheet/workbook I need to copy from always remains the same and the workbook I'm copying it into is always the active workbook but the name of the workbook is different. Any help is appreciated.
I have this code below and I'm trying to tweak it to work for my situation. I'm trying to copy a sheet from a closed workbook into my current active workbook that's open. The location of the sheet/workbook I need to copy from always remains the same and the workbook I'm copying it into is always the active workbook but the name of the workbook is different. Any help is appreciated.
VBA Code:
Sub CopySheet()
Workbooks.Open Filename:="*Enter File Location Here*"
Workbooks("Revised").Sheets("Copy").Copy Before:=ACTIVE WORKBOOK.Sheets("Glossary")
Workbooks("Revised.xls").Close savechanges:=False
End Sub