+ Reply to Thread
Results 1 to 5 of 5

Error message in Module

  1. #1
    Registered User
    Join Date
    03-07-2013
    Location
    Kentucky
    MS-Off Ver
    Excel 2010
    Posts
    80

    Error message in Module

    I have been months learning and working with vba. Now I think I have gotten in over my head. I am working on sub routines and I have a code that is giving me headaches.
    The error is in the line of set.c, it is Object required error. As usual I want to thank each person that has helped me along. Here is the code I have:frmSrid.xlsm

  2. #2
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: Error message in Module

    In this line of code:
    Please Login or Register  to view this content.
    ..txtln is an object that doesn't seem to exist in your form. Perhaps txtA or txtB?
    _________________
    Microsoft MVP 2010 - Excel
    Visit: Jerry Beaucaire's Excel Files & Macros

    If you've been given good help, use the icon below to give reputation feedback, it is appreciated.
    Always put your code between code tags. [CODE] your code here [/CODE]

    ?None of us is as good as all of us? - Ray Kroc
    ?Actually, I *am* a rocket scientist.? - JB (little ones count!)

  3. #3
    Valued Forum Contributor xlbiznes's Avatar
    Join Date
    02-22-2013
    Location
    Bahrain
    MS-Off Ver
    Excel 2007
    Posts
    1,223

    Re: Error message in Module

    Hi,

    where is this object -> txtLn.Value ?
    Happy Computing ,

    Xlbiznes.

    To show your appreciation please click *

  4. #4
    Registered User
    Join Date
    03-07-2013
    Location
    Kentucky
    MS-Off Ver
    Excel 2010
    Posts
    80

    Re: Error message in Module

    JBeaucaire and xlbizines, I looked at my sheet and found I sent the wrong one, However you questions made me look at the right one and the txtLn.value and found that txtLn needed to be txtWhat. Thanks for the help. I will try to do better next time.

  5. #5
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: Error message in Module

    I've marked this thread as SOLVED for you.
    Next time, select Thread Tools from the links above to mark a thread as SOLVED. Thanks.

+ 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. An error message on open - a totally blank VBA message box
    By Mr_Tigas in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 02-05-2013, 11:29 AM
  2. Excel 2007 : Compile error in hidden module message
    By jimbir in forum Excel General
    Replies: 2
    Last Post: 06-19-2010, 11:46 PM
  3. how to access Sheet module, normal module, Worbook module to type code
    By alibaba in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 10-31-2009, 07:51 AM
  4. Replies: 4
    Last Post: 01-21-2005, 08:06 PM

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