+ Reply to Thread
Results 1 to 11 of 11

Debug Errror - In User Form

  1. #1
    Registered User
    Join Date
    02-08-2011
    Location
    Tampa, FL
    MS-Off Ver
    Excel 2007
    Posts
    16

    Debug Errror - In User Form

    When I open the form, then I get the following debug error. Previously, it would populate the "Document Affected" but it was in the wrong column.
    This is the debug error that I get:

    ActiveCell.Offset(0, 3) = txtDate.Value
    Last edited by MLS Packer Lover; 10-10-2012 at 11:10 AM. Reason: Issue Solved!
    Mich

  2. #2
    Registered User
    Join Date
    11-25-2008
    Location
    Poland
    MS-Off Ver
    MSO 2K3, 2K10
    Posts
    84

    Re: Debug Errror - In User Form

    You have not txtDate control (and several other) in userform.

    Artik

  3. #3
    Registered User
    Join Date
    02-08-2011
    Location
    Tampa, FL
    MS-Off Ver
    Excel 2007
    Posts
    16

    Re: Debug Errror - In User Form

    I do have the date...is there something wrong with the way that line is written?

    Please Login or Register  to view this content.
    Last edited by MLS Packer Lover; 10-10-2012 at 07:18 AM. Reason: Added Code tags

  4. #4
    Forum Guru JosephP's Avatar
    Join Date
    03-27-2012
    Location
    Ut
    MS-Off Ver
    2003/10
    Posts
    7,328

    Re: Debug Errror - In User Form

    Your post does not comply with Rule 3 of our Forum RULES. Use code tags around code. Posting code without them makes your code hard to read and difficult to be copied for testing. Highlight your code and click the # at the top of your post window. For more information about these and other tags, found here
    Josie

    if at first you don't succeed try doing it the way your wife told you to

  5. #5
    Registered User
    Join Date
    02-08-2011
    Location
    Tampa, FL
    MS-Off Ver
    Excel 2007
    Posts
    16

    Re: Debug Errror - In User Form

    Thank you! As I said before, the code previously worked, and they asked to have a box added for the date and now I can't get it to work.

  6. #6
    Forum Guru JosephP's Avatar
    Join Date
    03-27-2012
    Location
    Ut
    MS-Off Ver
    2003/10
    Posts
    7,328

    Re: Debug Errror - In User Form

    as Artik said there is no control called txtDate in that form

    nor are there txtFromRev, txtToRev or txtSpecificsOfChange controls

  7. #7
    Registered User
    Join Date
    02-08-2011
    Location
    Tampa, FL
    MS-Off Ver
    Excel 2007
    Posts
    16

    Re: Debug Errror - In User Form

    Quote Originally Posted by JosephP View Post
    as Artik said there is no control called txtDate in that form

    nor are there txtFromRev, txtToRev or txtSpecificsOfChange controls
    Forgive my ignorance, but do you mean on the form itself? Because the form does have all of those.

  8. #8
    Forum Guru JosephP's Avatar
    Join Date
    03-27-2012
    Location
    Ut
    MS-Off Ver
    2003/10
    Posts
    7,328

    Re: Debug Errror - In User Form

    no it doesn't- there are no controls with those names on there

  9. #9
    Registered User
    Join Date
    02-08-2011
    Location
    Tampa, FL
    MS-Off Ver
    Excel 2007
    Posts
    16

    Re: Debug Errror - In User Form

    I know I'm driving you crazy, but I see it on the form and I see it in the code

    Please Login or Register  to view this content.
    I'm obviously missing something, but I don't know what. =(

  10. #10
    Forum Guru JosephP's Avatar
    Join Date
    03-27-2012
    Location
    Ut
    MS-Off Ver
    2003/10
    Posts
    7,328

    Re: Debug Errror - In User Form

    it's in the code but none of the textboxes on your form have those names which is why you get the error. they appear to be called textbox4, textbox6, textbox7 and textbox8

  11. #11
    Registered User
    Join Date
    02-08-2011
    Location
    Tampa, FL
    MS-Off Ver
    Excel 2007
    Posts
    16

    Re: Debug Errror - In User Form

    Wow! The lightbulb finally went on when you said textboxes!! Thank you for your patience and for solving my issue!!

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Tags for this Thread

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