+ Reply to Thread
Results 1 to 5 of 5

Find and store cell locations

  1. #1
    Forum Contributor
    Join Date
    08-16-2010
    Location
    Holland, MI
    MS-Off Ver
    Excel 2007
    Posts
    110

    Find and store cell locations

    Hey all...
    Take a look at the attached spreadsheet. I'm trying to find a way to search for a value in a specific range and then paste information into the cells below that location. But there are two levels. The user will enter the information that they want to search for in cells Q22 and Q23. Then the macro will search for those values in the specified ranges and then past information in the corresponding column below the found values. For example, if the user enters "Headliner" and "Med.", then the macro needs to store the cell location AG2. Then the rest of the code that I will add will paste cell information into that column which will come from the rest of the spreadsheet. I'll work that out, and I was able to store the first location (AD1 for headliner). But, I can't figure out how to capture the "high" column under headliner. Can someone help me?

    Thanks.
    Attached Files Attached Files

  2. #2
    Forum Expert
    Join Date
    12-24-2007
    Location
    Alsace - France
    MS-Off Ver
    MS 365 Office Suite
    Posts
    5,066

    Re: Find and store cell locations

    Why don't you copy the first row header value:
    "Headliner" value from AD1 to AO1
    This will help to find column AG when "Headliner" and ".Med" have been chosen
    - Battle without fear gives no glory - Just try

  3. #3
    Forum Expert jaslake's Avatar
    Join Date
    02-21-2009
    Location
    Atwood Lake in Mid NE Ohio...look it up.
    MS-Off Ver
    Excel 2010 2019
    Posts
    12,749

    Re: Find and store cell locations

    Hi jfoerch

    Try this
    Please Login or Register  to view this content.
    John

    If you have issues with Code I've provided, I appreciate your feedback.

    In the event Code provided resolves your issue, please mark your Thread as SOLVED.

    If you're satisfied by any members response to your issue please use the star icon at the lower left of their post.

  4. #4
    Forum Contributor
    Join Date
    08-16-2010
    Location
    Holland, MI
    MS-Off Ver
    Excel 2007
    Posts
    110

    Re: Find and store cell locations

    Perfect. Exactly what I was looking for. Thanks!

  5. #5
    Forum Expert jaslake's Avatar
    Join Date
    02-21-2009
    Location
    Atwood Lake in Mid NE Ohio...look it up.
    MS-Off Ver
    Excel 2010 2019
    Posts
    12,749

    Re: Find and store cell locations

    You're welcome...glad I could help. Thanks for the Rep.

+ 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. store two cell locations and use in formula asctivecell.address wont work
    By Bpd in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 06-26-2014, 10:58 PM
  2. How do I store a cell's address so I can find it later?
    By foxguy in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 05-28-2010, 03:03 PM
  3. Replies: 2
    Last Post: 02-22-2007, 12:42 PM
  4. [SOLVED] Formula to return under-budget store locations
    By BeckyRode in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 07-06-2006, 02:30 AM
  5. How store PageBrakes locations - Coded pagebrakes are deleted in Workbook_BeforePrint
    By Marie J-son in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 05-08-2005, 10:07 AM

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