Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Error code=2

Hi gents,
I have a workbook that uses macro's for various tasks
including a "Workbook_BeforeClose". Nothing in the coding
has changed for weeks, but I now get an error message on
closedown of "Routine location error code=2. Please
record this error code" Can anyone give me clue as to
what it means or where to look for the error.

TIA derek
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1,327
Default Error code=2

Hi Derek

Here's a way to make a list of errors with numbers:

Sub ErrorList()
Dim L As Long
On Error Resume Next
For L = 1 To 1000
Err.Raise (L)
Cells(L, 1).Value = Err.Number
Cells(L, 2).Value = Err.Description
Err.Clear
Next
End Sub

According to it, 2 is the usual "Application-defined or object-defined
error". So seeing the macro would help a lot.

--
HTH. Best wishes Harald
Followup to newsgroup only please

"Derek" skrev i melding
...
Hi gents,
I have a workbook that uses macro's for various tasks
including a "Workbook_BeforeClose". Nothing in the coding
has changed for weeks, but I now get an error message on
closedown of "Routine location error code=2. Please
record this error code" Can anyone give me clue as to
what it means or where to look for the error.

TIA derek



Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
error with code terilad Excel Discussion (Misc queries) 4 April 12th 10 06:20 PM
Why Im I getting an error in code.. N.F[_2_] Excel Discussion (Misc queries) 10 August 8th 07 02:50 AM
Error in Code N.F[_2_] Excel Discussion (Misc queries) 9 June 27th 07 06:48 PM
error in this code [email protected] Excel Worksheet Functions 2 December 5th 06 05:21 AM
Code Error Tom Excel Discussion (Misc queries) 0 February 21st 06 03:01 PM


All times are GMT +1. The time now is 10:30 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"