+ Reply to Thread
Results 1 to 6 of 6

Copy/paste Worksheet_change

  1. #1
    Valued Forum Contributor marreco's Avatar
    Join Date
    07-02-2011
    Location
    Brazil
    MS-Off Ver
    Excel 2010
    Posts
    1,862

    Copy/paste Worksheet_change

    Hi.

    I have 4 sheets (Copy, Paste2, Paste3, Paste4).
    I need, case target is in range ("E2:E67") then copy to tab Paste2 in column A
    Case target is in range ("F2:F67") then copy to tab Paste3, Case target is in range ("G2:G67") then copy to tab Paste4.

    i tri code below, but not work.
    Please Login or Register  to view this content.
    Thank you
    Last edited by marreco; 09-20-2016 at 01:39 PM.
    "No xadrez nem sempre a menor dist?ncia entre dois pontos ? uma linha reta" G. Kasparov.

    If your problem is solved, please say so clearly, and mark your thread as Solved: Click the Edit button on your first post in the thread, Click Go Advanced, select b from the Prefix dropdown, then click Save Changes. If more than two days have elapsed, the Edit button will not appear -- ask a moderator to mark it.

  2. #2
    Valued Forum Contributor WasWodge's Avatar
    Join Date
    08-02-2010
    Location
    Hampshire,England
    MS-Off Ver
    Office 365 and Office 2010
    Posts
    882

    Re: Copy/paste Worksheet_change

    Explain exactly what you mean by
    but not work.
    ....

    ....and why are the sheet names in your post different to the sheet names you describe in the code?

    Sheets("Plan2").Range("A" & lrTab2).Value = Target.Value
    sht2 = ThisWorkbook.Worksheets("Paste2")
    copy to tab Paste2 in column A
    Last edited by WasWodge; 09-20-2016 at 01:44 PM.
    If my solution worked (or not) please let me know. If your question is answered then please remember to mark it solved

    Computers are like air conditioners. They work fine until you start opening windows. ~Author Unknown

  3. #3
    Valued Forum Contributor marreco's Avatar
    Join Date
    07-02-2011
    Location
    Brazil
    MS-Off Ver
    Excel 2010
    Posts
    1,862

    Re: Copy/paste Worksheet_change

    Because i forgot edit...look now.

  4. #4
    Forum Guru
    Join Date
    07-25-2011
    Location
    Florida
    MS-Off Ver
    Excel 2003
    Posts
    9,643

    Re: Copy/paste Worksheet_change

    Please Login or Register  to view this content.
    Surround your VBA code with CODE tags e.g.;
    [CODE]your VBA code here[/CODE]
    The # button in the forum editor will apply CODE tags around your selected text.

  5. #5
    Valued Forum Contributor WasWodge's Avatar
    Join Date
    08-02-2010
    Location
    Hampshire,England
    MS-Off Ver
    Office 365 and Office 2010
    Posts
    882

    Re: Copy/paste Worksheet_change

    and so the other question?
    Explain exactly what you mean by
    but not work.
    and what exactly are you expecting to happen do with the lines below?
    Please Login or Register  to view this content.
    and think... is it possible to have 3 non-contiguous targets at the same time?

    Edit: it seems AlphaFrog has guessed correctly what the OP's objective was.
    Last edited by WasWodge; 09-20-2016 at 02:01 PM.

  6. #6
    Valued Forum Contributor marreco's Avatar
    Join Date
    07-02-2011
    Location
    Brazil
    MS-Off Ver
    Excel 2010
    Posts
    1,862

    Re: Copy/paste Worksheet_change

    Hi AlphaFrog, thank very much!!!!!!!!!

+ 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. [SOLVED] Worksheet_Change not triggered when I copy and paste
    By Lucille Boshoff in forum Excel Programming / VBA / Macros
    Replies: 15
    Last Post: 08-15-2016, 10:43 AM
  2. Replies: 3
    Last Post: 01-01-2015, 06:26 AM
  3. worksheet_change copy values and rearrange
    By timtim89 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 03-25-2012, 10:06 AM
  4. Capture Paste in Worksheet_Change
    By MarcL in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 05-26-2009, 05:31 AM
  5. Combination of UDF, Worksheet_change, and copy/paste causes problem
    By embirath in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 02-27-2007, 06:26 PM
  6. Copy/Paste problems with Worksheet_Change
    By K Dales in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 04-20-2006, 04:10 PM
  7. Replies: 1
    Last Post: 01-04-2005, 06: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