[FONT=Fixedsys]Option Explicit[/FONT]
[FONT=Fixedsys]Public Sub OpenWorkbookAndDoStuffToIt()[/FONT]
[FONT=Fixedsys] Dim wkbk As Workbook[/FONT]
[FONT=Fixedsys][COLOR=green] ' open the workbook with a known path & name[/COLOR][/FONT]
[FONT=Fixedsys] Application.EnableEvents = False[/FONT]
[FONT=Fixedsys] Set wkbk = Workbooks.Open("c:\folder\filename.xls")[/FONT]
[FONT=Fixedsys] Application.EnableEvents = True[/FONT]
[FONT=Fixedsys][COLOR=green] ' now you can do stuff to the workbook[/COLOR][/FONT]
[FONT=Fixedsys][COLOR=blue] wkbk.Sheets(1).Range("A1") = ThisWorkbook.Sheets(1).Range("A1")[/COLOR][/FONT]
[FONT=Fixedsys][COLOR=green][COLOR=#0000ff] ThisWorkbook.Sheets(1).Range("X99").Copy Destination:=wkbk.Sheets(1).Range("X99")[/COLOR][/COLOR][/FONT]
[COLOR=green][FONT=Fixedsys] ' save and close the workbook[/FONT][/COLOR]
[FONT=Fixedsys] Application.EnableEvents = False[/FONT]
[FONT=Fixedsys] wkbk.Close SaveChanges:=True[/FONT]
[FONT=Fixedsys] Application.EnableEvents = True[/FONT]
[FONT=Fixedsys]End Sub[/FONT]