• Hi All

    Please note that at the Chandoo.org Forums there is Zero Tolerance to Spam

    Post Spam and you Will Be Deleted as a User

    Hui...

  • When starting a new post, to receive a quicker and more targeted answer, Please include a sample file in the initial post.

Copy text from a colored cell to another spreadsheet

S P P

Member
Good evening!
Copy text from a colored cell to another spreadsheet
 

Attachments

  • Copy text from a colored cell to another spreadsheet.xlsx
    13.9 KB · Views: 3
Hi,​
according to VBA help a demonstration of 'all at once' as a beginner starter :​
Code:
Sub Demo1()
    Dim R&, L&, Rf As Range, A$, C%
        R = 1
        Plan2.UsedRange.Offset(1).ClearContents
    With Application.FindFormat
           .Clear
           .Interior.Color = vbYellow
        For L = 4 To 7 Step 3
            With Plan1.Cells(L, 2).CurrentRegion
                   Set Rf = .Find("", .Item(.Count), , , 1, , , , True)
                If Not Rf Is Nothing Then
                        A = Rf.Address
                        C = 1
                        R = R + 1
                    Do
                        C = C + 1
                        Plan2.Cells(R, C).Value2 = Rf.Value2
                        Set Rf = .Find("", Rf, , , , , , , True)
                    Loop Until Rf.Address = A
                End If
            End With
        Next
           .Clear
    End With
        Set Rf = Nothing
End Sub
Do you like it ? So thanks to click on bottom right Like !
 
Back
Top