Originally Posted by
stoly
I now where is, but dont now how Vba can find it, workbook is "house1", i did not change name of sheet, but let call him "green".
For me its so complicated to made this macros, I spend more then 10 days and make big nothing.
To "find" and open your file you can add this piece of code to your macros:
Sub openfile()
dim MyFile as Variant
MyFile = Application.GetOpenFilename(FileFilter:="Excel files(*.xls), *.xls", Title:="Input the name of the file")
If MyFile = False Then
MsgBox ("Cancel was pressed")
Exit Sub
End If
Workbooks.OpenText Filename:=MyFile
End Sub
If you want to copy info from one workbook to the other you will have to use something along these lines:
Workbooks("house1.xls").Sheets("green1").Range(MyRange).Copy Destination:=Workbooks("house2").Sheets("green2").Range("A1")
Application.CutCopyMode = False