+ Reply to Thread
Results 1 to 6 of 6

Find and show another sheet (adaptation)

Hybrid View

elsg Find and show another sheet... 08-28-2015, 10:55 AM
elsg Re: Find and show another... 08-31-2015, 10:44 AM
elsg Re: Find and show another... 09-01-2015, 09:48 AM
elsg Re: Find and show another... 09-02-2015, 08:33 AM
elsg Re: Find and show another... 09-08-2015, 08:27 AM
elsg Re: Find and show another... 09-09-2015, 10:44 AM
  1. #1
    Registered User
    Join Date
    09-29-2014
    Location
    brasil
    MS-Off Ver
    ms office 2010
    Posts
    56

    Find and show another sheet (adaptation)

    how adapt ron de bro=in code to find based cell ?
    Option Explicit
    
    Sub Copy_To_Another_Sheet_1()
        Dim FirstAddress As String
        Dim MyArr As Variant
        Dim rng As Range
        Dim Rcount As Long
        Dim I As Long
        Dim NewSh As Worksheet
    
        Dim InCellRng As Range
        
        With Application
            .ScreenUpdating = False
            .EnableEvents = False
        End With
    
        'Fill in the search Value
        InCellRng = Worksheets("FindSht").Range("B4").Value 'Array("bat")
    
        'You can also use more values in the Array
        'myArr = Array("@", "www")
    
        'Add new worksheet to your workbook to copy to
        'You can also use a existing sheet like this
        'Set NewSh = Sheets("Sheet2")
        Set NewSh = Worksheets.Add
    
        With Sheets("Cadastro de Itens").Range("C6:C1000")
    
            Rcount = 0
    
            For I = LBound(InCellRng) To UBound(InCellRng)
    
                'If you use LookIn:=xlValues it will also work with a
                'formula cell that evaluates to "@"
                'Note : I use xlPart in this example and not xlWhole
                Set rng = .Find(what:=InCellRng(I), _
                                after:=.Cells(.Cells.Count), _
                                LookIn:=xlFormulas, _
                                LookAt:=xlPart, _
                                SearchOrder:=xlByRows, _
                                SearchDirection:=xlNext, _
                                MatchCase:=False)
                If Not rng Is Nothing Then
                    FirstAddress = rng.Address
                    Do
                        Rcount = Rcount + 1
    
                        rng.Copy NewSh.Range("A" & Rcount)
    
                        ' Use this if you only want to copy the value
                        ' NewSh.Range("A" & Rcount).Value = Rng.Value
    
                        Set rng = .FindNext(rng)
                    Loop While Not rng Is Nothing And rng.Address <> FirstAddress
                End If
            Next I
        End With
    
        With Application
            .ScreenUpdating = True
            .EnableEvents = True
        End With
    End Sub

  2. #2
    Registered User
    Join Date
    09-29-2014
    Location
    brasil
    MS-Off Ver
    ms office 2010
    Posts
    56

    Re: Find and show another sheet (adaptation)

    Someone understand my post?

    thank you!!

  3. #3
    Registered User
    Join Date
    09-29-2014
    Location
    brasil
    MS-Off Ver
    ms office 2010
    Posts
    56

    Re: Find and show another sheet (adaptation)

    Hellow anyone, any idea?

    thank you!!

  4. #4
    Registered User
    Join Date
    09-29-2014
    Location
    brasil
    MS-Off Ver
    ms office 2010
    Posts
    56

    Re: Find and show another sheet (adaptation)

    Hellow anyone, any idea?

    thank you!!

  5. #5
    Registered User
    Join Date
    09-29-2014
    Location
    brasil
    MS-Off Ver
    ms office 2010
    Posts
    56

    Re: Find and show another sheet (adaptation)


  6. #6
    Registered User
    Join Date
    09-29-2014
    Location
    brasil
    MS-Off Ver
    ms office 2010
    Posts
    56

    Re: Find and show another sheet (adaptation)


+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. [SOLVED] How I can find and then show it in new sheet
    By pedjvak in forum Excel Programming / VBA / Macros
    Replies: 11
    Last Post: 10-09-2014, 09:06 AM
  2. Find a column by title even if its been moved and show contents on another sheet
    By KAPearson in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 05-26-2012, 06:10 PM
  3. find value in sheet based on combobox and show in listbox
    By herukuncahyono in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 04-22-2010, 05:43 AM
  4. Find the data (No. Invoice) on each sheet and then show it.
    By antoni in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 10-14-2009, 03:20 AM
  5. Find value and show it in another sheet
    By tsosmoulis in forum Excel General
    Replies: 2
    Last Post: 02-11-2008, 09:58 AM
  6. If query adaptation
    By khalid79m in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 10-10-2007, 07:12 AM
  7. Adaptation Of A Formula
    By Big Rick in forum Excel General
    Replies: 6
    Last Post: 09-30-2005, 01:05 PM

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