+ Reply to Thread
Results 1 to 2 of 2

Macro based on Cell Data-Copy to Specific Location on Different Sheet

  1. #1
    Registered User
    Join Date
    11-02-2012
    Location
    WA
    MS-Off Ver
    Excel 2010
    Posts
    21

    Macro based on Cell Data-Copy to Specific Location on Different Sheet

    Stuck on some code....

    Currently Cell Z2="Line1".

    I would like to write a macro that says essentially if Z2="Line1" copy cells Z1000:Z1200 and paste into Cell A1 on Sheet titled "Sheet1".

    If Z2="Line2", copy cells Z1000:Z1200 and past into Cell B1 on Sheet titled "Sheet1"
    If Z2="Line3", copy cells Z1000:Z1200 and past into Cell C1 on Sheet titled "Sheet1"
    On through "Line100"

    Any suggestions? Thank you!!

  2. #2
    Forum Expert
    Join Date
    09-20-2011
    Location
    England
    MS-Off Ver
    Excel 2010
    Posts
    2,278

    Re: Macro based on Cell Data-Copy to Specific Location on Different Sheet

    Hello
    Maybe something like the following code would work for you:

    Please Login or Register  to view this content.
    Not sure how you wish to trigger this but it could be a Worksheet Event or Form/ActiveX control. Range Z2 would need to have some validation of a correct input, for example a drop down with: Line1; Line2 etc.

    DBY

+ 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. Replies: 17
    Last Post: 05-23-2016, 11:04 PM
  2. Replies: 3
    Last Post: 05-17-2016, 05:14 PM
  3. [SOLVED] Macro to copy date to specific sheet based on data from another sheet.
    By RichTea88 in forum Excel Programming / VBA / Macros
    Replies: 16
    Last Post: 08-09-2013, 11:28 AM
  4. [SOLVED] Copy data from specific location in sheet 1 to sheet 2
    By vignesh805 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 06-07-2013, 01:27 PM
  5. HELP! Macro to Copy specific cells from one sheet to another based on specific criteria
    By atriscritti in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 12-11-2012, 11:05 AM
  6. Macro to search sheet for certain criteria and copy specific data to cell
    By ThaGonz in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 12-02-2012, 12:34 PM
  7. Save specific sheet to location based on contents of cell
    By KJL in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 08-30-2012, 08:08 AM

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