Solved

How do I copy the FIND results in Excel 2010 to another worksheet ?

Posted on 2013-01-24
2
1,585 Views
Last Modified: 2013-01-24
Hi,

I'm trying to copy the FIND results returned as they appear in a 'Find and Replace' dialog box in Excel 2010, so I can print them out.

A screenshot will not catch those results which require scrolling.

Any ideas ?
Thanks
Toco
0
Comment
Question by:Tocogroup
2 Comments
 
LVL 24

Accepted Solution

by:
Steve earned 500 total points
ID: 38814360
You could use something like the attached function:

Function find_all(str As String, rng As Range) As String
    For Each c In rng
        If InStr(1, c.Value, str, vbTextCompare) > 0 Then
            find_all = find_all & c.Address & " "
        End If
    Next
End Function

Open in new window



thsi folowing function (not in file attached) will allow you to copy the cell result into word or similar with one line per result:
Function find_all(str As String, rng As Range) As String
    Dim c As Range
    For Each c In rng
        If InStr(1, c.Value, str, vbTextCompare) > 0 Then
            find_all = find_all & c.Worksheet.Name & "!" & c.Address & vbCrLf
        End If
    Next
End Function

Open in new window

FindAll-example.xlsm
0
 

Author Closing Comment

by:Tocogroup
ID: 38815365
That's great. Many thanks Barman.
Toco
0

Featured Post

Active Directory Webinar

We all know we need to protect and secure our privileges, but where to start? Join Experts Exchange and ManageEngine on Tuesday, April 11, 2017 10:00 AM PDT to learn how to track and secure privileged users in Active Directory.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Workbook link problems after copying tabs to a new workbook? David Miller (dlmille) Intro Have you either copied sheets to a new workbook, and after having saved and opened that workbook, you find that there are links back to the original sou…
Excel can be a tricky bit of software to get your head around. Whilst you’ll be able to eventually get to grips with the basic understanding of how to get by, there are a few Excel tips that not everybody will even know about let alone know how to d…
This Micro Tutorial demonstrate the bugs in Microsoft Excel for Mac with Pivot Charts.
This Micro Tutorial will demonstrate on a Mac how to change the sort order for chart legend values and decrpyt the intimidating chart menu.

820 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question