+ Reply to Thread
Results 1 to 2 of 2

Copy and Past if cell equals X for each day of the week

  1. #1
    Registered User
    Join Date
    11-22-2016
    Location
    Maysville
    MS-Off Ver
    2010
    Posts
    1

    Copy and Past if cell equals X for each day of the week

    I would like to add onto this script that I found on this awesome site. To include all the days of the week..
    So basically I have a task for each worker and if Monday column has a "X" in it I copy that row of of data to "Monday"

    I want to continue this for each day of the week.



    Option Compare Text
    Private Sub Worksheet_Change(ByVal Target As Range)
    If Intersect(Target, Range("A:A")) Is Nothing Then Exit Sub
    If Target = "x" Then
    Range("H" & Target.Row & ":T" & Target.Row).Copy Sheets("Monday").Cells(Rows.Count, "F").End(xlUp).Offset(1, 0)


    End If
    End Sub

  2. #2
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464

    Re: Copy and Past if cell equals X for each day of the week

    Please upload a workbook or a representative cut down copy, anonymised if necessary. It is always easier to advise if we can see your request in its context.

    Show a before and after situation with manually calculated results, explaining which information is data and which is results, and if it's not blindingly obvious how you have arrived at your results some explanatory notes as well.

    If this is a data extraction exercise there may well be simpler ways of achieving your goal. A Pivot table springs to mind or an Advanced Data filter. But we need to see your layout.
    Richard Buttrey

    RIP - d. 06/10/2022

    If any of the responses have helped then please consider rating them by clicking the small star icon below the post.

+ 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. Copy certain cells from a row to another sheet if cell equals value
    By Nikc in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 11-04-2014, 06:13 AM
  2. [SOLVED] Copy Entire Row if Cell Value Equals X or Y or Z
    By TShelt in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 04-01-2014, 04:38 PM
  3. [SOLVED] VBA copy and past to different cell
    By namluke in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 02-03-2014, 12:02 PM
  4. If drop down menu equals one of 5 lists, on a certain day of the week, then..
    By o0needia0o in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 10-01-2013, 11:17 PM
  5. [SOLVED] Copy row to another sheet if cell equals value
    By AggyRJ in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 03-31-2013, 01:11 AM
  6. If cell equals, copy row
    By Bodock in forum Excel General
    Replies: 4
    Last Post: 08-29-2011, 06:56 PM
  7. If Cell equals text Copy Cells, B2,B3,B4
    By Djmask in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 08-20-2005, 11:11 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