+ Reply to Thread
Results 1 to 6 of 6

2 paragraph of VBA code does not work correctly when being put into one worksheet

  1. #1
    Registered User
    Join Date
    05-13-2013
    Location
    Nanjing, China
    MS-Off Ver
    Excel 2010
    Posts
    7

    2 paragraph of VBA code does not work correctly when being put into one worksheet

    Hello, good afternoon.

    It would be appreciated if anyone can help me out.
    See enclosed, I am trying to let the worksheet "Shipyard" to have two auto functions by two paragraphs of VBA Codes.
    1. When editing the column 3, return the editing time at column 5.
    2. When change the values in column 4 into "closed" or "class request", move this row into worksheet "Closed leads"

    The two paragraphs of codes works separately, but does not work when they are put together.

    Thanks in advance.
    Attached Files Attached Files

  2. #2
    Forum Contributor arlu1201's Avatar
    Join Date
    09-09-2011
    Location
    Bangalore, India
    MS-Off Ver
    Excel 2003 & 2007
    Posts
    19,166

    Re: 2 paragraph of VBA code does not work correctly when being put into one worksheet

    Try this code
    Please Login or Register  to view this content.
    If I have helped, Don't forget to add to my reputation (click on the star below the post)
    Don't forget to mark threads as "Solved" (Thread Tools->Mark thread as Solved)
    Use code tags when posting your VBA code: [code] Your code here [/code]

  3. #3
    Registered User
    Join Date
    05-13-2013
    Location
    Nanjing, China
    MS-Off Ver
    Excel 2010
    Posts
    7

    Re: 2 paragraph of VBA code does not work correctly when being put into one worksheet

    Thanks, arlu1201. But it looks not working properly. E.g. check "closed", run time error. Editing column 3 does not give editing time at column 5.

  4. #4
    Forum Contributor arlu1201's Avatar
    Join Date
    09-09-2011
    Location
    Bangalore, India
    MS-Off Ver
    Excel 2003 & 2007
    Posts
    19,166

    Re: 2 paragraph of VBA code does not work correctly when being put into one worksheet

    You have some other code in the 3rd worksheet hence it gives the error.

  5. #5
    Registered User
    Join Date
    05-13-2013
    Location
    Nanjing, China
    MS-Off Ver
    Excel 2010
    Posts
    7

    Re: 2 paragraph of VBA code does not work correctly when being put into one worksheet

    HI, yes, It works well when delete the code in worksheet 3. But the prolem is that I need the code, which send the row back to worksheet "shipyard" when column 4 is changed to status other than "Closed" or "Class request". Any suggestions?

  6. #6
    Registered User
    Join Date
    05-13-2013
    Location
    Nanjing, China
    MS-Off Ver
    Excel 2010
    Posts
    7

    Red face Re: 2 paragraph of VBA code does not work correctly when being put into one worksheet

    Tried to use similar code on worksheet 3, it works fine now. Thanks so much!
    I am wondering if I can give one more function to worksheet "shipyard" to sort all rows acc. to date sequence in column E.
    Attached Files Attached Files

+ 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