Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.programming
|
|||
|
|||
Closing a workbook
Hi,
Can anyone help to make this work: Sub CopyAndClose() Dim filex filex = Range("Sheets2!F2").Value Workbooks.Open Filename:=filex, Password:="123" Sheets("database").Select Sheets("database").Copy Befo=Workbooks("test.xls"). _ Sheets(1) Workbooks.Close Filename:=filex End Sub The error is in the last row. Thanks, Gert-Jan |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
Closing a workbook | Excel Discussion (Misc queries) | |||
closing a workbook | Excel Programming | |||
Closing Hidden Workbook when Active Workbook is Closed | Excel Programming | |||
Help with closing down a workbook?? | Excel Worksheet Functions | |||
closing excel after closing a workbook | Excel Programming |