+ Reply to Thread
Results 1 to 9 of 9

Trying to use method to find but generates error

  1. #1
    Valued Forum Contributor marreco's Avatar
    Join Date
    07-02-2011
    Location
    Brazil
    MS-Off Ver
    Excel 2010
    Posts
    1,862

    Trying to use method to find but generates error

    Hi.

    Because when I try to open my formulrio this error occurs?
    Compilation error:
    Variable not defined


    The name of the form is in trouble ...
    frmCadastroServiçosConvenio

    Please Login or Register  to view this content.
    Attached Files Attached Files
    Last edited by marreco; 02-23-2012 at 06:26 PM.

  2. #2
    Registered User
    Join Date
    07-11-2008
    Location
    The Netherlands
    Posts
    6

    Re: Trying to use method to find but generates error

    My guess would be that you forgot to declare variable Found

    Stating them like this makes it more clear:

    Dim MyName As String
    Dim myRange As Range
    Dim Found as Range <---------
    Emiel
    Prof. VBA Developer
    redcirclesoftware.com

  3. #3
    Valued Forum Contributor marreco's Avatar
    Join Date
    07-02-2011
    Location
    Brazil
    MS-Off Ver
    Excel 2010
    Posts
    1,862

    Re: Trying to use method to find but generates error

    Hi
    Thanks for replying but what now

    It is giving error.

    Runtime Error '9 '
    Subscript is in the range

  4. #4
    Forum Expert OnErrorGoto0's Avatar
    Join Date
    12-30-2011
    Location
    I DO NOT POST HERE ANYMORE
    MS-Off Ver
    I DO NOT POST HERE ANYMORE
    Posts
    1,655

    Re: Trying to use method to find but generates error

    That is because there is no sheet called BDClientes in that workbook.
    Good luck.

  5. #5
    Valued Forum Contributor marreco's Avatar
    Join Date
    07-02-2011
    Location
    Brazil
    MS-Off Ver
    Excel 2010
    Posts
    1,862

    Re: Trying to use method to find but generates error

    I did a test and put a sheet with that name, but still gives the same error

    Compilation error:
    Variable not defined

  6. #6
    Valued Forum Contributor marreco's Avatar
    Join Date
    07-02-2011
    Location
    Brazil
    MS-Off Ver
    Excel 2010
    Posts
    1,862

    Re: Trying to use method to find but generates error

    Hi
    Thanks for replying but what now

    It is giving error.

    Runtime Error '9 '
    Subscript is in the range

  7. #7
    Forum Expert OnErrorGoto0's Avatar
    Join Date
    12-30-2011
    Location
    I DO NOT POST HERE ANYMORE
    MS-Off Ver
    I DO NOT POST HERE ANYMORE
    Posts
    1,655

    Re: Trying to use method to find but generates error

    Since you appear to just be repeating your messages, I'm done.

  8. #8
    Valued Forum Contributor marreco's Avatar
    Join Date
    07-02-2011
    Location
    Brazil
    MS-Off Ver
    Excel 2010
    Posts
    1,862

    Re: Trying to use method to find but generates error

    I'll try to better yourself and then return.

    I had not noticed the statements.

    Maybe I can solve ams if I can not return again
    Thank you!

  9. #9
    Valued Forum Contributor marreco's Avatar
    Join Date
    07-02-2011
    Location
    Brazil
    MS-Off Ver
    Excel 2010
    Posts
    1,862

    Re: Trying to use method to find but generates error

    i'm solved this way..

    Please Login or Register  to view this content.

+ 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