Hi
I opened file A.xlsxm and wrote the code below. I ran the code and entered B.xlsx. The code below did not work until I changed the 5th line to the following
Sheet1.Move before:=Workbooks(2).Sheets(1)
Sub abc()
Dim x As String
x = InputBox("file")
Workbooks.Open (x)...