+ Reply to Thread
Page 3 of 3 FirstFirst 123
Results 31 to 35 of 35

Thread: Copy and Paste using worksheet change

  1. #31
    Registered User
    Join Date
    01-21-2012
    Location
    Tullahoma, TN
    MS-Off Ver
    Excel 2010
    Posts
    21

    Re: Copy and Paste using worksheet change

    The form initiates, but when I click "add job" within the form, it gives me this error. I tried to debug but i kept getting "stuck" on this same section of code - it just kept going through this section over and over.. I am assuming this is the error, but that's being assumptive. What do you think is up?

    For Each objControl In Me.Controls
        If objControl.Name = tb Then
        objControl.AddItem ""
        objControl.AddItem "Tiesen"
        objControl.AddItem "Jones"
        objControl.AddItem "TN"
        objControl.AddItem "Mie"
        objControl.AddItem "Jackson"
        objControl.AddItem "Mills"
        objControl.AddItem "Robertson"
        objControl.AddItem "Benley"
        objControl.AddItem "SAT"
        objControl.AddItem "Roscoe"
        objControl.AddItem "Lemon"
        objControl.AddItem "LC"
        objControl.AddItem "Chit"
        objControl.ListIndex = 0
        Exit For
        End If
    Next
    Also, I know that this is the code for the combo boxes and they are fine. So that's why I said it was assumptive. But, I could not get past this section of code to attempt and debug like you requested. I am really sorry all this junk is going on..
    Last edited by arader1216; 02-04-2012 at 10:29 PM. Reason: Adding info

  2. #32
    Registered User
    Join Date
    01-21-2012
    Location
    Tullahoma, TN
    MS-Off Ver
    Excel 2010
    Posts
    21

    Re: Copy and Paste using worksheet change

    I cannot go to page three of the posts..

  3. #33
    Valued Forum Contributor smuzoen's Avatar
    Join Date
    10-28-2011
    Location
    Brisbane, Australia
    MS-Off Ver
    Excel 2003/2007/2010
    Posts
    359

    Re: Copy and Paste using worksheet change

    That loops over all the controls and finds the comboboxes and adds the values - this won't be the error. Place a Breakpoint next to EnterJob.Show (not the load command) and then hit F5 - the code will run and load the comboboxes then stop just before showing the form. Then start hitting F8 again and see where the error occurs. We need to narrow down where the error is actually occurring. I have added more error handling to the new version. You are using Excel 2010? 32bit or 64bit version? Use the attached workbook. Reboot your machine as well.
    Attached Files Attached Files
    Last edited by smuzoen; 02-04-2012 at 11:03 PM.
    Hope this helps.
    Anthony
    Pack my box with five dozen liquor jugs
    PS: Remember to mark your questions as Solved once you are satisfied. Please rate the answer(s) by selecting the Star in the lower left next to the Triangle. It is appreciated

  4. #34
    Registered User
    Join Date
    01-21-2012
    Location
    Tullahoma, TN
    MS-Off Ver
    Excel 2010
    Posts
    21

    Re: Copy and Paste using worksheet change

    32 Bit.. Excel 2010..

  5. #35
    Registered User
    Join Date
    01-21-2012
    Location
    Tullahoma, TN
    MS-Off Ver
    Excel 2010
    Posts
    21

    Re: Copy and Paste using worksheet change

    I can't get the debugging thing.. I think I am just frustrated by the whole project right now and I have not made any progress in a while. I am still far away from finished and I dunno if I am going to be able to actually do this.

+ 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.2.0