473,395 Members | 1,872 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,395 software developers and data experts.

How to open files being used by someone else and not show their name?

When VB program opens excel file that someone else has open, I don't get name of the user; all all I get "file being used". What can I do to see the username?

Workbooks.Open(Filename:="P:\QualityAssurance\WrkB ooks-Net\Motor Inspection\Purchased Motors.xls").RunAutoMacros Which:=xlAutoOpen
Mar 11 '11 #1
1 1627
kadghar
1,295 Expert 1GB
Try asking excel not to show alerts:

Expand|Select|Wrap|Line Numbers
  1. Application.DisplayAlerts = False
  2. 'your code
  3. Application.DisplayAlerts = True
Mar 25 '11 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

10
by: Ricola ! | last post by:
Two c# dll's were compiled and added to the GAC. They appear in the .NET Configuration tool. However, when trying to add a reference to a new project, the dlls do not appear in the .NET...
1
by: arganx | last post by:
The following does not work when opening a file that contains a space in the name. It works perfectly on files that have no space in the name. Any ideas on how to make this work? Surely I...
16
by: iwdu15 | last post by:
how can i open a file i saved and place the info into different text boxes?
6
by: Grumpy Aero Guy | last post by:
I would like to add functionality to a form that contains a check box with which the end user can check it so that this particular form won't appear again. I. e., a "Don't show this form again"...
1
by: Westbrook, Christopher L (WESTBCL04) | last post by:
I am having some trouble, and I can't figure out why. I'm trying to use the simple keylogger project from source forge, and then create a web interface to open the resulting files, so people from...
2
by: Tammam | last post by:
Hello, I converted a web solution from VS2003 to VS2005. The conversion process proceeded successfully with no errors and the new VS2005 solution builds with no error. When trying to run it, the...
0
by: Moskie | last post by:
I have a form where the user is able to provide an arbitrary number of attachments. This is done through Javascript that dynamically generates INPUT fields, each of which has the NAME attribute set...
3
by: aldonnelley | last post by:
Hi all. Just having a weird problem with tkinter. I'm trying to make a gui that shows results from an image search, with a "forward" and "back" button so the user can compare results from...
0
by: =?Utf-8?B?c2hhZG93?= | last post by:
After migrating my project from VS2003 to VS2005, the images in my aspx pages don't show (only a red X is shown). But the images show up inside the Visual Studio View Designer. This is the aspx...
34
by: Alexnb | last post by:
Gerhard Häring wrote: No, it didn't work, but it gave me some interesting feedback when I ran it in the shell. Heres what it told me: Traceback (most recent call last): File...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.