+ Reply to Thread
Results 1 to 13 of 13

Error 400 Solution Required

  1. #1
    Registered User
    Join Date
    04-19-2010
    Location
    Manchester, England
    MS-Off Ver
    Excel 2010
    Posts
    85

    Error 400 Solution Required

    Hi All

    Hope someone can help with a problem running a macro.

    I am using Excel version 2010 and have been running an excel macro without any problems.

    I then transfered the spreadsheet and ran it in Excel version 2007 without any problems.

    1 week later the version 2007 is now throwing an error 400 when it is run. I transfered a copy back to 2010 and it works perfectly.

    Had a quick look on the internet to see if it could be easily sorted, but I am unsure how to proceed. The article is saying that this problem is related to an add-in.

    Many thanks



    Diane

  2. #2
    Forum Guru Izandol's Avatar
    Join Date
    03-29-2012
    Location
    *
    MS-Off Ver
    Excel 20(03|10|13)
    Posts
    2,581

    Re: Error 400 Solution Required

    It may help us to help you if we may see the macro and know where it fails.
    • Please remember to mark threads Solved with Thread Tools link at top of page.
    • Please use code tags when posting code: [code]Place your code here[/code]
    • Please read Forum Rules

  3. #3
    Registered User
    Join Date
    04-19-2010
    Location
    Manchester, England
    MS-Off Ver
    Excel 2010
    Posts
    85

    Re: Error 400 Solution Required

    Many thanks for your reply Izandol

    It was a code which MJMetzer kindly wrote for me last week. It has run many times without issue, and has just started to be a problem today.

    It is on a laptop which is being used by a true novice when it comes to excel, so I am thinking the settings have been changed in some way.

    The error message - Microsoft Visual Basic X 400 but does not point to any line within the code.

    Macro For Dividing a Named Range by 10 was the original thread.

    Just tried to run a different macro and the same error appears.

    Thanks


    Diane

  4. #4
    Forum Guru Izandol's Avatar
    Join Date
    03-29-2012
    Location
    *
    MS-Off Ver
    Excel 20(03|10|13)
    Posts
    2,581

    Re: Error 400 Solution Required

    If you load Excel on this machine in Safe Mode (hold the Ctrl key and start Excel), will the macro then run without error? If it will, then it is a problem with an add-in.

  5. #5
    Registered User
    Join Date
    04-19-2010
    Location
    Manchester, England
    MS-Off Ver
    Excel 2010
    Posts
    85

    Re: Error 400 Solution Required

    Hi Izandol

    I have loaded Excel in "Safe Mode", and yes the macro runs perfectly.

    Diane

  6. #6
    Forum Guru Izandol's Avatar
    Join Date
    03-29-2012
    Location
    *
    MS-Off Ver
    Excel 20(03|10|13)
    Posts
    2,581

    Re: Error 400 Solution Required

    Then I think you must run Excel in regular mode and disable each add-in until the macro will run. Then you will know which is the problem.

  7. #7
    Registered User
    Join Date
    04-19-2010
    Location
    Manchester, England
    MS-Off Ver
    Excel 2010
    Posts
    85

    Re: Error 400 Solution Required

    Hi Izandol

    Thanks for your reply.

    I have checked the Excel Add-ins (Excel Options, Manage Excel Add-ins, Go) and I have no add-ins sellected.

    Could it be an add-in which needs to be added.

    Thanks


    Diane

  8. #8
    Forum Guru Izandol's Avatar
    Join Date
    03-29-2012
    Location
    *
    MS-Off Ver
    Excel 20(03|10|13)
    Posts
    2,581

    Re: Error 400 Solution Required

    That would not explain Safe Mode working, I do not think. Have you checked COM add-ins?

    Also, there may be files in the XLSTART folders - there are 2 of these folders - that cause the problem. If there are add-in files there, they will not show as installed add-ins even if they are open.
    Last edited by Izandol; 02-03-2014 at 10:39 AM.

  9. #9
    Registered User
    Join Date
    04-19-2010
    Location
    Manchester, England
    MS-Off Ver
    Excel 2010
    Posts
    85

    Re: Error 400 Solution Required

    Thanks Izandol

    I will check the COM add-ins. But as for the 2 XLSTART folders.....where will I find them?

    Kindest regards

    Diane

  10. #10
    Forum Guru Izandol's Avatar
    Join Date
    03-29-2012
    Location
    *
    MS-Off Ver
    Excel 20(03|10|13)
    Posts
    2,581

    Re: Error 400 Solution Required

    Exact location will depend on your version of Office and Windows but you may search for them in Windows Explorer - be sure to search in hidden files and folders as well.

  11. #11
    Registered User
    Join Date
    04-19-2010
    Location
    Manchester, England
    MS-Off Ver
    Excel 2010
    Posts
    85

    Re: Error 400 Solution Required

    Thanks

    Will do.

  12. #12
    Forum Expert
    Join Date
    01-23-2013
    Location
    USA
    MS-Off Ver
    Microsoft 365 aka Office 365
    Posts
    3,863

    Re: Error 400 Solution Required

    Hi Diane,

    I hope you have the problem fixed. If not, you might want to try the following modified version of the code that causes your problem on the offending computer. It uses 'Conditional Compilation' in an attempt to isolate the problem if it is in fact my Macro that causes the problem.

    Instructions are inside the Macro. The aim is to start with everything disabled, and run the Macro. One by One by setting values to 'True', small parts of the code are enabled one by one. The Macro won't do it's intended function, but the aim is not to run the Macro, but to attempt to isolate the 400 error.

    Lewis

    Please Login or Register  to view this content.

  13. #13
    Registered User
    Join Date
    04-19-2010
    Location
    Manchester, England
    MS-Off Ver
    Excel 2010
    Posts
    85

    Re: Error 400 Solution Required

    Hi Lewis

    Very sorry for the late reply......not enough hours in the day sometimes.

    I have not been able to rectify the problem at the moment, and will certainly run the code and let you know the results.

    Once again Lewis your time and expertise is very much appreciated.

    Diane

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. [SOLVED] IF Statement solution required
    By Umar in forum Excel General
    Replies: 3
    Last Post: 07-02-2012, 10:45 AM
  2. Solution to a #DIV/0 Error required please
    By divingscubaboy in forum Excel General
    Replies: 2
    Last Post: 03-25-2010, 11:59 AM
  3. VBA solution required to create a database
    By daisydiane in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 08-20-2009, 08:53 AM
  4. Required solution for an vlookup exception.
    By poojabans in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 05-06-2009, 08:52 AM
  5. Truncating Text - Solution Required.
    By daspery in forum Excel General
    Replies: 3
    Last Post: 03-09-2007, 09:50 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1