+ Reply to Thread
Results 1 to 7 of 7

code or macro to be triggered when selecting specific data

  1. #1
    Forum Contributor
    Join Date
    07-08-2012
    Location
    beirut
    MS-Off Ver
    Excel 2010
    Posts
    102

    code or macro to be triggered when selecting specific data

    Hey all,
    I need a code or a macro, to be triggered when I select "GO" in column E, which is the last column
    and I want this macro to copy all data in this selected row to the worksheet having the same name as the data in column D
    I've been trying alot to make this, with no luck.
    Thanks in advance
    Attached Files Attached Files

  2. #2
    Forum Expert
    Join Date
    11-23-2005
    Location
    Rome
    MS-Off Ver
    Ms Office 2016
    Posts
    1,628

    Re: code or macro to be triggered when selecting specific data

    You could use this code to put in each sheet:
    Please Login or Register  to view this content.
    Regards,
    Antonio

  3. #3
    Forum Contributor
    Join Date
    07-08-2012
    Location
    beirut
    MS-Off Ver
    Excel 2010
    Posts
    102

    Re: code or macro to be triggered when selecting specific data

    Thanks Antonio for your reply,
    When I make an entry, I get the microsoft visual basic error : Run-time error '13' , Type mismatch
    Although even if I press end or debug, it copies the data to the desired sheet.

  4. #4
    Forum Expert
    Join Date
    11-23-2005
    Location
    Rome
    MS-Off Ver
    Ms Office 2016
    Posts
    1,628

    Re: code or macro to be triggered when selecting specific data

    Excuse me, I tried macro only on one sheet:
    Please Login or Register  to view this content.
    Regards,
    Antonio

  5. #5
    Forum Contributor
    Join Date
    07-08-2012
    Location
    beirut
    MS-Off Ver
    Excel 2010
    Posts
    102

    Re: code or macro to be triggered when selecting specific data

    Thank you Antonio, it works very well.
    One more question please, is it possible to edit the data after they are copied?
    For example, if I enter in TOM sheet these information:
    Time Distance Lap time Teammate GO/NO GO
    1:30 8km 1.5 km KEN GO

    This code will automatically copy them to KEN sheet.
    What I want is to change teammate in KEN sheet to TOM and GO to NO GO
    Have a nice day

  6. #6
    Forum Expert
    Join Date
    11-23-2005
    Location
    Rome
    MS-Off Ver
    Ms Office 2016
    Posts
    1,628

    Re: code or macro to be triggered when selecting specific data

    Try with this new code:
    Please Login or Register  to view this content.
    Regards,
    Antonio

  7. #7
    Forum Contributor
    Join Date
    07-08-2012
    Location
    beirut
    MS-Off Ver
    Excel 2010
    Posts
    102

    Re: code or macro to be triggered when selecting specific data

    It works like a charm
    THANK YOU

+ 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