+ Reply to Thread
Results 1 to 2 of 2

Developing a "Search" or "Find" Macro/ VBA Program

  1. #1
    Registered User
    Join Date
    01-27-2013
    Location
    United Kingdom
    MS-Off Ver
    Excel 2010
    Posts
    1

    Lightbulb Developing a "Search" or "Find" Macro/ VBA Program

    Over the past twelve months, Ive had to quickly develop knowledge in Excel for my job, which is in the social care sector. Before this, I used Excel at school some ten years ago. However, trying to develop Macro's and use VBA is pushing my ability at the moment...

    I'm trying write a Macro where I can input a name (first, last or combination), and it will search current worksheet, other worksheets in the file and specified other worksheets/ files. It will then either show me or tell me where the name(s) has been found. This way I can search back over X years of data sheets to see if a certain individual has appeared in previous years files...

    At work, I'm using Excel 2010.

    Any ideas, suggestions or posts already on this idea would be GREATLY welcome...

    Thanks!

  2. #2
    Forum Guru xladept's Avatar
    Join Date
    04-14-2012
    Location
    Pasadena, California
    MS-Off Ver
    Excel 2003,2010
    Posts
    12,378

    Re: Developing a "Search" or "Find" Macro/ VBA Program

    Hi SamBevis,

    Something like this:

    Please Login or Register  to view this content.
    Directions for running the routine(s) just supplied

    Copy the code to the clipboard

    Open your Workbook

    Press ALT + F11 to open the Visual Basic Editor.

    Select “Module” from the Insert menu

    Type "Option Explicit" then paste the code into the white space on the right

    With the cursor between Sub and End Sub press F5 (F8 to Single Step)

    OR

    Press ALT + Q to close the code window.

    Press ALT + F8 then double click on the macro name
    Last edited by xladept; 01-27-2013 at 09:49 PM.
    If I've helped you, please consider adding to my reputation - just click on the liitle star at the left.

    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~(Pride has no aftertaste.)

    You can't do one thing. XLAdept

    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~aka Orrin

+ 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