+ Reply to Thread
Results 1 to 6 of 6

while opening workbook form.show method is not working

  1. #1
    Registered User
    Join Date
    12-15-2010
    Location
    Hyderabad
    MS-Off Ver
    Excel 2007
    Posts
    21

    while opening workbook form.show method is not working

    Hi All,

    I am trying to show a form in excel open workbook event. it giving runtime-error 400. Application defined or object defined error.

    Can anyone suggest me how can i resolve this issue?

    Please Login or Register  to view this content.
    Ramana.

  2. #2
    Valued Forum Contributor
    Join Date
    02-09-2012
    Location
    Mauritius
    MS-Off Ver
    Excel 2007
    Posts
    1,055

    Re: while opening workbook form.show method is not working

    Hi Ramana.

    I m not getting any error. Its working fine for me. Just try it again.
    Click *, if my suggestion helps you. Have a good day!!

  3. #3
    Forum Expert
    Join Date
    02-14-2009
    Location
    .
    MS-Off Ver
    ................
    Posts
    2,840

    Re: while opening workbook form.show method is not working

    Nothing wrong with the code - is the form named correctly?

  4. #4
    Registered User
    Join Date
    12-15-2010
    Location
    Hyderabad
    MS-Off Ver
    Excel 2007
    Posts
    21

    Re: while opening workbook form.show method is not working

    Thanks for the quick response...
    Even i am wondering.. why its not working. I have some strange situations.

    when i use frmInput.show vbModeless its working but frmInput.show is not working.

    One more thing i am getting this error only in excel 2003 that i am using. If try excel 2010 its working perfectly.

    please find the attached screeenshot.

    thanks,
    Ramanauntitled1.jpg

  5. #5
    Forum Expert
    Join Date
    02-14-2009
    Location
    .
    MS-Off Ver
    ................
    Posts
    2,840

    Re: while opening workbook form.show method is not working

    Then there's some code in the UserForm_Initialize event, or a procedure called by it, that is not compatible with XL 2003.

    Posting an image is pointless, it gives no more information that what you've already stated in your post. Posting a workbook that displays the issue would be a lot more helpful

  6. #6
    Registered User
    Join Date
    12-15-2010
    Location
    Hyderabad
    MS-Off Ver
    Excel 2007
    Posts
    21

    Re: while opening workbook form.show method is not working

    Hi cytop,

    i am sorry for late response.. i was away from system from last two days. I just tried by commenting all the statements in UserForm_Initialize event. still i am getting the same error. I am just thinking whether is there any problem with the excel application that i am using. Actually i am running Excel 2003 from XP Mode.

    Thanks,
    Ramana

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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