Results 1 to 7 of 7

Copy cell if certain demands are met [Solved]

Threaded View

  1. #1
    Registered User
    Join Date
    08-06-2012
    Location
    Norwat
    MS-Off Ver
    Excel 2010
    Posts
    8

    Copy cell if certain demands are met [Solved]

    Hi,

    I have an excel sheet with a lot of values. Sometimes I wan't to extract some of these cell values. I've tried to create a macro that copies the cell value(it could be text) if the cell background color is yellow and paste is into another cell. After that I want the values to be plotted into a scatter chart.

    this is what I got, but it doesen't work...:

    For Each cell In Worksheets("Sheet1").Range("A1:A30").Cells
    
    If cell.Interior.ColorIndex = 6 Then
    ActiveCell.Copy
    Range("M1").Select
    ActiveSheet.Paste
    
    End If
    
    Next
    
    
    End Sub
    Could anyone please help me?


    Tor from Norway
    Last edited by Cutter; 08-06-2012 at 10:33 AM. Reason: Added code tags

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