Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Excel / Programming / March 2006

Tip: Looking for answers? Try searching our database.

Closing a named workbook?

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
drucey - 24 Mar 2006 11:18 GMT
Hi all,

I have a generated filesearch list of files, in a master workbook (FM
Purchase Order.xls).

Is there a macro that i can put in the auto_open bit of the searched
files, to say:

If there is an workbook open called "FM Purchase Order.xls", close it.

Thank you!

Signature

drucey

Ardus Petus - 24 Mar 2006 11:38 GMT
Sub test()
   On Error Resume Next
   Workbooks("FM Purchase Order.xls").Close
   On Error GoTo 0
End Sub

HTH
--
AP

> Hi all,
>
[quoted text clipped - 7 lines]
>
> Thank you!
drucey - 24 Mar 2006 11:59 GMT
Artus, you are amazing.

Signature

drucey

 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.