Just use:
Workbooks("B.xls").Close
--
Vasant
"ttomlinson" <ttomlinson.1psweb_1117382705.0387@excelforum-nospam.com> wrote
in message news:ttomlinson.1psweb_1117382705.0387@excelforum-nospam.com...
>
> I have managed to open the workbook but not close it
>
> to open I am using the code
>
> Application.Workbooks.Open ("E:\Documents and
> Settings\Trevor\Desktop\B.xls")
>
> This works fine. How do I close though I have tried
>
> Application.Workbooks("E:\Documents and
> Settings\Trevor\Desktop\B.xls").Close
>
> and
>
> Application.Workbooks.Close("E:\Documents and
> Settings\Trevor\Desktop\B.xls")
>
> neither work.
>
> Where have I gone wrong there?
>
> Thanks
> Trev
>
>
> --
> ttomlinson
> ------------------------------------------------------------------------
> ttomlinson's Profile:
http://www.excelforum.com/member.php...o&userid=23839
> View this thread: http://www.excelforum.com/showthread...hreadid=374909
>
Bookmarks