brightyoyo
New Member
Hi
I have a macro to opens a specific file and copies data to my open workbook
wb.Activate[/code]
Range("D1".Select[/code]
Selection.PasteSpecial Paste:=xlValues, Operation:=xlNone, SkipBlanks:= _[/code]
False, Transpose:=False[/code]
I would to add to the macro a way to close that file after the copying is done.
Thank You
I have a macro to opens a specific file and copies data to my open workbook
Code:
Dim wb As Workbook
[code]Set wb = ThisWorkbook
[code]Workbooks.Open Filename:="WORKSTATION-48Excel Macro FilesPL_Import and [code]Conversion_Template_DATA_1.xlsm" '<<<< Change File Name
[code]Columns("B:B").Select
Selection.Copy
wb.Activate[/code]
Range("D1".Select[/code]
Selection.PasteSpecial Paste:=xlValues, Operation:=xlNone, SkipBlanks:= _[/code]
False, Transpose:=False[/code]
I would to add to the macro a way to close that file after the copying is done.
Thank You