?
Solved

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

Posted on 2013-01-24
2
Medium Priority
?
2,136 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 24

Accepted Solution

by:
Steve earned 2000 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

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

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…
After seeing numerous questions for Dynamic Data Validation I notice that most have used Visual Basic to solve the problem. This suggestion is purely formula based and can be used in multiple rows.
The viewer will learn how to use a discrete random variable to simulate the return on an investment over a period of years, create a Monte Carlo simulation using the discrete random variable, and create a graph to represent the possible returns over…
Finds all prime numbers in a range requested and places them in a public primes() array. I've demostrated a template size of 30 (2 * 3 * 5) but larger templates can be built such 210  (2 * 3 * 5 * 7) or 2310  (2 * 3 * 5 * 7 * 11). The larger templa…

770 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