Share via

"400" Error Message?

Anonymous
2010-07-28T23:21:52+00:00

I keep getting an "400" as an error messages after I try to run macros from my personal.xlsm from the QAT.  What the heck is "400"?


AthenaTree Goddess of Payroll Wisdom

Microsoft 365 and Office | Excel | For home | Windows

Locked Question. This question was migrated from the Microsoft Support Community. You can vote on whether it's helpful, but you can't add comments or replies or follow the question.

0 comments No comments

12 answers

Sort by: Most helpful
  1. Anonymous
    2010-10-11T17:21:20+00:00

    Hi Mike and thanks for support,

    the code is:

    Sub Muestra_Aviso()

        On Error GoTo fin

        Archivo_Original = ActiveWorkbook.Name

        ActiveSheet.Range("A1").Select

        Dim Mensaje, Estilo, Título, Ayuda, Ctxt

        Dim Respuesta As Integer    ' columna As String, num As Integer, MiCadena as string

        Ayuda = "DEMO.HLP"    ' Define el archivo de ayuda.

        Ctxt = 1000    ' Define el tema

        ' state the message

        Mensaje = "This program will change your data. "

        Mensaje = Mensaje & "Do you really want to continue ?"

        Estilo = vbYesNo ' Define los botones.

        Título = "Cálculo de Horas Extras y Jornadas Nocturna y Normal"

        Respuesta = MsgBox(Mensaje, Estilo, Título, Ayuda, Ctxt)

        If Respuesta = 6 Then

            Call Program

        Else

            Exit Sub

        End If

    fin:

        frm_BarraProgreso.Hide

        Exit Sub

    End Sub

    But the error appears before the messagebox,

    The last time it appeared the error, it solved re-starting the computer.

    Again, thanks for your interest, time and support.

    Was this answer helpful?

    0 comments No comments
  2. Anonymous
    2010-10-10T13:39:58+00:00

    Hi,

    Post the code


    If this post answers your question, please mark it as the Answer.

    Mike H

    Was this answer helpful?

    0 comments No comments
  3. Anonymous
    2010-10-10T13:25:06+00:00

    Dear AthenaTree:

    i have exactly your same problem, if you have found an answer, please tell it to me, it will be of great help.

    Was this answer helpful?

    0 comments No comments
  4. Anonymous
    2010-07-29T21:15:42+00:00

    Thank you Lars-Ake, for your quick reply

    No--no form is being called or used, I am running the macro on a spreadsheet.  All I get is just a message box with a big red X and says "400".  Nothing else.  If I run the macro from the VBA editor it runs perfectly, but I can't run any macros from the QAT.  I get the same message "400".  I run this automation macro several times per month; it just cuts, pastes and sums ranges from another report. I added the macro to QAT so I could just push a button and whoppee my work is done. 

    Any Help would be great!

    Thank you


    AthenaTree Goddess of Payroll Wisdom

    Was this answer helpful?

    0 comments No comments
  5. Anonymous
    2010-07-28T23:26:07+00:00

    http://support.microsoft.com/?kbid=146864

    says

    400 Form already displayed; can't show modally (version 97)

    Hope this helps / Lars-Åke

    Was this answer helpful?

    0 comments No comments