+ Reply to Thread
Results 1 to 3 of 3

selecting a specific cell based on value of cell A1

  1. #1
    Registered User
    Join Date
    12-21-2016
    Location
    Bradford,Ontario canada
    MS-Off Ver
    2016
    Posts
    3

    selecting a specific cell based on value of cell A1

    I am creating a schedule for clients,

    When the client gives me a date they wish to return I enter it in A1 and select a command button.

    The macro will take the value from A1, compare to all the values in column D until it finds a match.

    When I use a date, the reference value cant be found.

    if I place the word cat in A1 and then in D540 the cell in D540 is selected.

    Why woud it not work for dates?

    here is my code....

    Please Login or Register  to view this content.
    thanks
    Last edited by FDibbins; 12-21-2016 at 03:22 AM. Reason: code tags added

  2. #2
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,460

    Re: selecting a specific cell based on value of cell A1

    Welcome to the forum! Unfortunately, your post does not comply with Rule 8 of our Forum RULES. Do not crosspost your question on multiple forums without including links here to the other threads on other forums.

    Cross-posting is when you post the same question in other forums on the web. The last thing you want to do is waste people's time working on an issue you have already resolved elsewhere. We prefer that you not cross-post at all, but if you do (and it's unlikely to go unnoticed), you MUST provide a link (copy the url from the address bar in your browser) to the cross-post.

    Expect cross-posted questions without a link to be closed and a message will be posted by the moderator explaining why. We are here to help so help us to help you!

    Read this to understand why we ask you to do this, and then please edit your first post to include links to any and all cross-posts in any other forums (not just this site).
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    Forum Rules (updated August 2023): please read them here.

  3. #3
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,926

    Re: selecting a specific cell based on value of cell A1

    Your post does not comply with Rule 3 of our Forum RULES. Use code tags around code.

    Posting code between [CODE]Please [url=https://www.excelforum.com/login.php]Login or Register [/url] to view this content.[/CODE] tags makes your code much easier to read and copy for testing, it also maintains VBA formatting.

    Click on Edit to open your thread, then highlight your code and click the # icon at the top of your post window. More information about these and other tags can be found here
    I have added them for you - this time
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

+ 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. selecting cell range based on number in a different cell
    By tzvi in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 08-03-2015, 06:44 AM
  2. Selecting specific Row in an Active Cell.
    By nicoloideon in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 11-22-2014, 03:18 AM
  3. Selecting a specific cell in a table with VBA
    By BAVE in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 01-23-2013, 07:51 AM
  4. Selecting specific cell if score falls within specific range
    By Rennier in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 11-12-2008, 02:22 PM
  5. selecting specific strings from a cell
    By pEkvo in forum Excel General
    Replies: 5
    Last Post: 10-17-2008, 06:54 PM
  6. VBA - Selecting a cell based on relative position vs cell #
    By jago_ML in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 05-08-2007, 03:04 AM
  7. Specific Cell Selecting
    By bodhisatvaofboogie in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 06-13-2006, 02:10 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