+ Reply to Thread
Results 1 to 3 of 3

Searching for text and displaying on another sheet...

Hybrid View

  1. #1
    Registered User
    Join Date
    10-12-2003
    Posts
    34
    sub FindString()
    dim MyString as String
    dim sh as worksheet
    dim cell as range

    On Error Resume Next
    MyString ="Total Building Damages:"
    For each sh in worksheets
    Set cell = Range("A:A").Find(What:=MyString)
    Next sh

    Msgbox "Your string was found in: " & sh.Name & cell.address

    'To get the offset into your report sheet:

    Sheets("Report").Range("Whaterver")=cell.offset(0,6) '6 columns to the right

    end sub

    Hope this helps you get started
    Last edited by gocush; 01-04-2005 at 12:58 AM.
    Paul

  2. #2
    Registered User
    Join Date
    01-21-2004
    Location
    Texas
    Posts
    7

    Thanks, Paul...

    That should get me started just fine. Appreciate your time.


    Jim

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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