Visual Basic Error Message
Prep for a pre-employment Excel test with Job Test Prep
Thanks Thanks:  0
Likes Likes:  0
Results 1 to 2 of 2

Thread: Visual Basic Error Message

  1. #1
    Guest

    Default

    I have a macro and I load it into a button in the toolbar. However, when I click the button from other workbooks, I got an Visual Basic Error Message "400"
    What should I do to solve this problem??
    Thanks in advance

  2. #2
    MrExcel MVP
    Join Date
    Feb 2002
    Location
    Sunny, spring-like Hull
    Posts
    3,339
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Default

    Error 400 is defined as follows in the VB help:-

    "You can't use the Show method to display a visible form as modal. This error has the following cause and solution:

    You tried to use Show, with the style argument set to 1 – vbModal, on an already visible form.
    Use either the Unload statement or the Hide method on the form before trying to show it as a modal form."

User Tag List

Like this thread? Share it with others

Like this thread? Share it with others

Posting Permissions

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

 

DMCA.com