Wrox Programmer Forums
|
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
 
Old December 29th, 2006, 02:27 PM
Authorized User
 
Join Date: Jul 2006
Posts: 27
Thanks: 0
Thanked 0 Times in 0 Posts
Default What Is Error 400?

I am adding a pop-up calendar to some VB coding. I've already done the add-in through Excel. When I select it in References in VB, I get a Visual Basic error that just says 400 in the message box. There is an image of a red button with an "X" on it. My only selections are "OK" and "HELP". If I select "HELP", I just get a blank page in a new window. Can anyone tell me what this error means? Thanks.

Terry
 
Old December 30th, 2006, 12:30 AM
Registered User
 
Join Date: Dec 2006
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Default

From what I have been able to gather, the 400 is a generic illegal operation code that could apply to just about anything. When you say
Quote:
quote:When I select it in References in VB, I get a Visual Basic error
I'm not quite sure what you mean exactly. Do you mean that when you run the code you get the error?

What happens when you step through the code? Does that line of code point you to something that you might be overlooking (malformed function, invalid offset, etc)? You might want to paste the code here - would make it easier to visualize.

I sympathize on the stupid error message. You would think there would at least be a straightforward listing of what they mean in the VBA help but alas, such is not the case.


 
Old December 30th, 2006, 11:20 AM
Authorized User
 
Join Date: Jul 2006
Posts: 27
Thanks: 0
Thanked 0 Times in 0 Posts
Default

I am trying to include an add-in that is a pop-up calendar. When I go to Tools-References in the VB menu, select Calendar and then click OK, I get the error. Calendar is not included in References and there is no References branch in the Project Explorer. I have one other Workbook where I have been able to include the Calendar and another one where I have this same problem. I have no idea why.
 
Old January 2nd, 2007, 03:07 PM
Authorized User
 
Join Date: Sep 2006
Posts: 13
Thanks: 0
Thanked 0 Times in 0 Posts
Default

From what I found the error 400 is part of Excel 97 (did not find this in the error code list for the current version). In Excel 97 it was a form (display) error

Not sure if that helps...


DaveG





Similar Threads
Thread Thread Starter Forum Replies Last Post
AS/400 gagiovla SQL Server 2000 8 October 2nd, 2009 11:22 AM
error 400 davidspeare Beginning VB 6 1 October 1st, 2005 02:40 PM
Reg :400 Error in Web Services sriram6781 XML 1 August 8th, 2005 07:59 PM
XML & AS/400 jmariani XML 1 November 7th, 2003 04:01 AM
Using XMLHTTP in VBA - Error 400 helentoomik XML 3 July 17th, 2003 04:31 AM





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