+ Reply to Thread
Results 1 to 2 of 2

VBA - name of selected cell.

  1. #1
    Registered User
    Join Date
    11-17-2005
    Posts
    4

    VBA - name of selected cell.

    I'm sure this is a simple question. I have a spreadsheet containing columns of data. I need a macro that can search for a specific word, and then return the location of the cell where it finds it.

    For example, if the column heading CustomerID is located in "D5", then If I search for "CustomerID", I want it to put "D5" in a specific cell on another tab of the workbook. The column names are always the same, however, their location can move, so I need to be able to reference the name of the cell where the information is at.

    It would be even better if it could input the name of the cell where the CustomerID from the first record is located, and not where the name "Customer ID is located (one cell below the name), but I think I can make either way work.

    Thanks.

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

    Re: VBA - name of selected cell.

    Does this do what you want?
    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)

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