+ Reply to Thread
Results 1 to 3 of 3

Selecting Name Using Table

  1. #1
    Registered User
    Join Date
    04-06-2011
    Location
    Charlotte, NC
    MS-Off Ver
    Excel 2007
    Posts
    9

    Selecting Name Using Table

    I have a table names PlantNames. It looks like this:

    Please Login or Register  to view this content.
    I want to start with Allen 1 in cell A1. Then do my code. Then Put Allen 2 in A1. Then do my code...all the way down to Lee 3.

    It sounds really simple in my head but I can't think of how to do it through code.

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

    Re: Selecting Name Using Table

    Why not loop through your list running the code for each entry?

  3. #3
    Valued Forum Contributor jwright650's Avatar
    Join Date
    12-10-2010
    Location
    Va, USA
    MS-Off Ver
    Excel 2003, Excel 2010
    Posts
    606

    Re: Selecting Name Using Table

    ...to add to Stephan's post:

    D/L the attached workbook "For Next looping thru names.xls" and check out macro "Step_thru_Names"


    maybe this will give you some ideas of how to use the loop that Stephan was speaking about.

    EDIT:whoops..nevermind this line...it does nothing "Dim xName As String"
    move your windows around so you can watch....see Word.doc for example
    Attached Files Attached Files
    Last edited by jwright650; 04-07-2011 at 10:40 AM. Reason: added Word.doc and comment
    Life is like a roll of toilet paper. The closer it gets to the end, the faster it goes.
    John Wright

+ 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