brightyoyo
New Member
Hi
I have a macro that will import data from another file into the opened workbook. The only problem is a have to include the path too the file. Is there a way to create a prompt to ask me where the file to import is located. Here a sample of the macro
wb.Activate[/code]
Range("D1".Select[/code]
Selection.PasteSpecial Paste:=xlValues, Operation:=xlNone, SkipBlanks:= _[/code]
False, Transpose:=False[/code]
Thank You
I have a macro that will import data from another file into the opened workbook. The only problem is a have to include the path too the file. Is there a way to create a prompt to ask me where the file to import is located. Here a sample of the macro
Code:
Dim wb As Workbook
[code]Set wb = ThisWorkbook
[code]Workbooks.Open Filename:="WORKSTATION-48New FolderNew Files
[code]Template.xlsx" '<<<< 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]
Thank You