+ Reply to Thread
Results 1 to 3 of 3

need to copy some cells contents to a another worksheet based on a value condition

  1. #1
    Registered User
    Join Date
    02-18-2013
    Location
    Germany
    MS-Off Ver
    Excel 2010
    Posts
    3

    need to copy some cells contents to a another worksheet based on a value condition

    Hi,

    I am not really good in writing macro codes and I need some help.

    I have an check list where i need to check if each row meets the standards. so if yes, I just tick the checked box. if not I need to enter X (for automatic calculation) under the "OK"cell.

    what I need is that where I have a cell with Value X in a specific cell range, I need excel to copy cells' content of the same row to another sheet. for example 1 st row to be copied should be pasted in WS "AP" cell: B3 then the second one should go to the next empty row in AP worksheet. Also I need the macro to tell me from which worksheet this row has been copied and create a hyperlink to the relevent worksheet.

    please check the attached workbook and many thanks in advance for your help

    Best
    Mochmoch
    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: need to copy some cells contents to a another worksheet based on a value condition

    How will the macro know which sheet the data should be copied to? And which is the main sheet from where data should be copied?

    In the AP sheet, you have 2 OK columns. Do you want the macro to put the "X" in the OK column? If so, in which column?
    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
    02-18-2013
    Location
    Germany
    MS-Off Ver
    Excel 2010
    Posts
    3

    Re: need to copy some cells contents to a another worksheet based on a value condition

    hi Arlu,

    Thank for trying to help me. my answers are directly under your questions:

    How will the macro know which sheet the data should be copied to?
    actually the file has more than 22 worksheet, which I did not put all of them since it has confidential info.
    the file is a visit check list. I have to visit an outlet and check every single item (row), when it is checked and everything is according to standard, i just tick the check-box in column A. if an item (row) is not according to standard, I have to put X under OK. so for example if if I am checking Row 5 in DW worksheet and I Found that "Washing Levers" Status is not ok then I manually type "X" in cell C5. to deduct points (I already created the IF Function, you can try it". the same applies for the "OK" of the cleanliness. if it is not clean then I manually type "X" in cell F5 to deduct point. what I need macro to do is to where ever there is X in a specific Range of cells to Copy its row to "AP" worksheet.

    And which is the main sheet from where data should be copied?

    I should run Macro in all my data pooling worksheet and as I said there are 20 almost.

    In the AP sheet, you have 2 OK columns. Do you want the macro to put the "X" in the OK column? If so, in which column?
    yes that's right, if X macro found the X under the status OK, then to move the entire row here. the goal of the AP sheet is to have a consolidated sheet that listed down all "X" items which need action. that's why AP means Action plan. so instead of going back and forth to know where they lost points they can easily go to AP worksheet and see all items taht are not as per standards.

    sorry it is too much explanation. I do not mind if you have a better idea to do it, I can change the whole concept.

    Regards

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Tags for this Thread

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