Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > Microsoft Office > Excel VBA > Excel VBA
Password Reminder
Register
Register | FAQ | Members List | Calendar | 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 tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developersí questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Reply
 
Thread Tools Display Modes
  #1 (permalink)  
Old December 29th, 2006, 01:27 PM
Authorized User
 
Join Date: Jul 2006
Location: Kalamazoo, MI, USA.
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
Reply With Quote
  #2 (permalink)  
Old December 29th, 2006, 11:30 PM
Registered User
 
Join Date: Dec 2006
Location: , , USA.
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.


Reply With Quote
  #3 (permalink)  
Old December 30th, 2006, 10:20 AM
Authorized User
 
Join Date: Jul 2006
Location: Kalamazoo, MI, USA.
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.
Reply With Quote
  #4 (permalink)  
Old January 2nd, 2007, 02:07 PM
Authorized User
 
Join Date: Sep 2006
Location: , NH, USA.
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
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

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

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 03:01 AM
Using XMLHTTP in VBA - Error 400 helentoomik XML 3 July 17th, 2003 04:31 AM



All times are GMT -4. The time now is 06:05 AM.


Powered by vBulletin®
Copyright ©2000 - 2018, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.