+ Reply to Thread
Results 1 to 8 of 8

Macro/Excel Find Function

  1. #1
    Registered User
    Join Date
    09-05-2011
    Location
    St. John's, Canada
    MS-Off Ver
    Excel 2010
    Posts
    70

    Macro/Excel Find Function

    Hey Everyone

    I've created a Macro uses the find function to find rows & columns and than collect the data from the row-Column intersection. It all works great when I use simple words like "cat" and "dog". However the actual report I'm retrieving data from has the cells formated in such a way that the find function doesn't work, not even when I use the excel find function. Are there other find fucntions I can use in my macro besides

    Please Login or Register  to view this content.
    I've also attached a sample of the report columns. I can't seem to get the find function to pick up these columns.

    Thanks in advance! You are all Amazing!
    Attached Files Attached Files
    Last edited by ashleys.nl; 09-14-2011 at 02:31 PM.

  2. #2
    Forum Guru
    Join Date
    08-26-2007
    Location
    London
    Posts
    4,606

    Re: Macro/Excel Find Function

    What are you searching for?

  3. #3
    Registered User
    Join Date
    09-05-2011
    Location
    St. John's, Canada
    MS-Off Ver
    Excel 2010
    Posts
    70

    Re: Macro/Excel Find Function

    Hey Stephen

    I'm searching for the actual column titles for example in the attached workbook I would search for "DH Gauge Press" or "WHT @ SST". But I can't seem to find these cells when I'm using the find function. I believe it has something to do with how they are spaced. I've tried several combonations of typing these into the find functions but with no luck.

    Also the reason I am trying to find these columns is sometimes the reports I recieve have new columns or rows inserted so I want something more reliable than just copying the value of an assigned cell. Say for example E30 in old reports has "Guage" information but in newer reports E30 has "Sub-Sea Choke" data.

    Thanks for your interest

  4. #4
    Forum Guru
    Join Date
    08-26-2007
    Location
    London
    Posts
    4,606

    Re: Macro/Excel Find Function

    Yes it's those invisible carriage return characters I think. Here is one approach (get rid of them):
    Please Login or Register  to view this content.

  5. #5
    Registered User
    Join Date
    09-05-2011
    Location
    St. John's, Canada
    MS-Off Ver
    Excel 2010
    Posts
    70

    Re: Macro/Excel Find Function

    Thanks,

    But just so I'm clear.

    This code goes to row 5 and replaces invisible charecters right? if so it a great approach but in these reports I'm working with rows are subject to change as well.

    For example a year ago the Column titles would have been in row 4, today they are in row 5. and tommorow who knows where they could be. I'm trying to create a way of finding data regardless of its reference location.

    Thank you much though

    Anymore thoughts?

  6. #6
    Forum Guru
    Join Date
    08-26-2007
    Location
    London
    Posts
    4,606

    Re: Macro/Excel Find Function

    This will do the whole sheet:
    Please Login or Register  to view this content.

  7. #7
    Registered User
    Join Date
    09-05-2011
    Location
    St. John's, Canada
    MS-Off Ver
    Excel 2010
    Posts
    70

    Re: Macro/Excel Find Function

    Ahhh ha! excellent I shall give this a try and get back to you! Thank you soo much!

  8. #8
    Registered User
    Join Date
    09-05-2011
    Location
    St. John's, Canada
    MS-Off Ver
    Excel 2010
    Posts
    70

    Re: Macro/Excel Find Function

    Works Great... here's the final sample code I've constructed

    Please Login or Register  to view this content.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Tags for this Thread

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