VB Error 55 File Already open

prometheus

New Member
Joined
Feb 28, 2002
Messages
45
When opening a networked file on SOME computers I receive the error message (#55) that the

"file sample.xls is already open. Reopening will cause any changes to be discarded. Do youwant to reopen?"

If one selects either yes or no the file runs fine. However, I would like to eliminate this error message from occuring in the first place. Any idea as to why it only occurs on some computers? It seems to happen more ofen if the Excel file is opened from a link in another Windows program (Windows XP professional).

If I cannot eliminate the error is it possible to write some visual basic code to hide and clear just an error #55? Thanks in advance. John
 

Excel Facts

Pivot Table Drill Down
Double-click any number in a pivot table to create a new report showing all detail rows that make up that number
Like this .. ?
Code:
Sub test()
    On Error Resume Next
    '------------------------------------------
    '- test only .. try to divide by zero
    x = 1 / 0
    '------------------------------------------
    If Err.Number <> 55 Then
        MsgBox ("Error : " & Error(Err.Number))
        Err.Clear
        Exit Sub
    End If
End Sub
 
Upvote 0

Forum statistics

Threads
1,216,109
Messages
6,128,883
Members
449,477
Latest member
panjongshing

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top