+ Reply to Thread
Results 1 to 5 of 5

need code to find a word in a column make that numbered row the new variable.

  1. #1
    Forum Contributor
    Join Date
    03-14-2013
    Location
    United States
    MS-Off Ver
    Excel 2010
    Posts
    491

    need code to find a word in a column make that numbered row the new variable.

    Hi,

    Just trying to alter the following code....


    I would normally have the user enter where the word Heading is...

    Dim Row As String
    Row = InputBox("Enter First Row of Headers (e.g. 7)")


    But I want excel to find the word Headers and return the rown number...

    Any help is appreciated

  2. #2
    Valued Forum Contributor nigelbloomy's Avatar
    Join Date
    11-06-2013
    Location
    USA
    MS-Off Ver
    Excel 2010
    Posts
    1,011

    Re: need code to find a word in a column make that numbered row the new variable.

    Does this do what you need?

    Please Login or Register  to view this content.
    Last edited by nigelbloomy; 07-21-2015 at 02:52 PM. Reason: Added "Cells" to search whole sheet
    Some people volunteer in soup kitchens or hospitals. I choose to make the world better by trying to help you with Excel. We're all learning.

    <---Click * Add Reputation for all helpful comments. It's like giving a smile.
    Forum Rules: How to mark your post [Solved] and have a happier, Excel enriched life.

  3. #3
    Forum Contributor
    Join Date
    03-14-2013
    Location
    United States
    MS-Off Ver
    Excel 2010
    Posts
    491

    Re: need code to find a word in a column make that numbered row the new variable.

    I wuv you thank you!

  4. #4
    Forum Expert
    Join Date
    06-12-2012
    Location
    Ridgefield Park, New Jersey
    MS-Off Ver
    Excel 2003,2007,2010
    Posts
    10,241

    Re: need code to find a word in a column make that numbered row the new variable.

    Maybe:

    Please Login or Register  to view this content.
    I don't think it's a good idea to give a variable a name like row. Maybe HeaderRow or something else.

  5. #5
    Valued Forum Contributor nigelbloomy's Avatar
    Join Date
    11-06-2013
    Location
    USA
    MS-Off Ver
    Excel 2010
    Posts
    1,011

    Re: need code to find a word in a column make that numbered row the new variable.

    I like John's advice as well.
    @Swade730 if that answers your question please mark the thread as solved and give rep points to all those who helped.

+ 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. Replies: 2
    Last Post: 07-02-2015, 07:35 AM
  2. [SOLVED] VBA code to make web-address as variable dependent.
    By mchilapur in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 01-09-2015, 12:18 AM
  3. SUMIFS with Variable range and Criteria that need to find by word
    By jnh0 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 08-08-2013, 10:14 AM
  4. VBA to enter a word, find said word in string of column & copy to another column
    By tuneloon in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 06-29-2012, 11:59 AM
  5. Excel 2007 : Can not make numbered copies within wookbook
    By superdutyfan in forum Excel General
    Replies: 0
    Last Post: 12-19-2011, 03:33 PM
  6. [SOLVED] how do make a row non numbered?
    By Removing number value from a row in forum Excel - New Users/Basics
    Replies: 2
    Last Post: 02-24-2006, 11:45 AM
  7. [SOLVED] How do I set up raffle tickets to be numbered in Word
    By connie in forum Excel General
    Replies: 1
    Last Post: 10-05-2005, 05: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