Wrox Programmer Forums
Go Back   Wrox Programmer Forums > Microsoft Office > Excel VBA > Excel VBA
| Search | Today's Posts | Mark Forums Read
Excel VBA Discuss using VBA for Excel programming.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Excel VBA section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
  #1 (permalink)  
Old September 13th, 2007, 05:15 AM
Registered User
Join Date: Sep 2007
Location: , , .
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default Closing A File When Someone Else Is Using It

Hi all,

I've used the following macro http://support.microsoft.com/kb/q138621/ within a conversion macro to check whether the final conversion spreadsheet is open or not by another user, so that it can be updated.

Is there a way of taking this one step further, and closing the open file that the other user has open, so that I can open it and update it?


  #2 (permalink)  
Old September 25th, 2007, 04:27 PM
Friend of Wrox
Join Date: Nov 2004
Location: Port Orchard, WA, USA.
Posts: 1,621
Thanks: 1
Thanked 3 Times in 3 Posts

I would be really surprised if you were able to do that. It seems that Windows would (appropriately) make it pretty tough to close a file out from under someone else.

Similar Threads
Thread Thread Starter Forum Replies Last Post
closing browser prv299 ASP.NET 2.0 Professional 1 June 5th, 2008 09:15 AM
Closing an ADO connection to a .DBF file tknnguyen Pro VB 6 2 July 25th, 2007 01:49 PM
Closing a Page. akhilhp ASP.NET 2.0 Basics 3 May 1st, 2007 10:03 AM
closing Form kobystud C# 4 July 1st, 2004 03:34 PM

Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.