+ Reply to Thread
Results 1 to 14 of 14

Find text, if not paste in the first blank cell

  1. #1
    Forum Contributor
    Join Date
    08-10-2010
    Location
    Tavira, POrtugal
    MS-Off Ver
    Excel 2010
    Posts
    132

    Find text, if not paste in the first blank cell

    hello. I'm trying to make a macro to find a specific text, and if not available, this same text to be inserted into the first blank cell.
    The macro to find Is already inserted in the project, now I just need the part of in case does not find the text, paste it in the first blank cell.
    what I want to do is place the text, not found in the first blank cell in column A. in this case line 7 of column A.
    For example: if you do not find the word "line" in column A, the macro would paste that word in the blank line immediately below. in this case line 7.

    first of all thanks for the help.
    Attached Files Attached Files
    Last edited by Birnen; 05-12-2012 at 12:03 PM.

  2. #2
    Forum Moderator davesexcel's Avatar
    Join Date
    02-19-2006
    Location
    Regina
    MS-Off Ver
    MS 365
    Posts
    13,475

    Re: Find text, if not paste in the first blank cell

    What 1st blank cell do you want the value? Is it a specific row or a specific column?

    When this is explained, you do not have to paste the value.

    1st blank row=datafind

  3. #3
    Forum Contributor
    Join Date
    08-10-2010
    Location
    Tavira, POrtugal
    MS-Off Ver
    Excel 2010
    Posts
    132

    Re: Find text, if not paste in the first blank cell

    what I want to do is place the text, not found in the first blank cell in column A. in this case line 7 of column A.
    For example: if you do not find the word "line" in column A, the macro would paste that word in the blank line logs below. in this case line 7.
    Last edited by davesexcel; 05-12-2012 at 08:42 AM.

  4. #4
    Valued Forum Contributor StevenM's Avatar
    Join Date
    03-23-2008
    Location
    New Lenox, IL USA
    MS-Off Ver
    2007
    Posts
    910

    Re: Find text, if not paste in the first blank cell

    Add:

    Please Login or Register  to view this content.
    Sometime after:

    Please Login or Register  to view this content.
    And Before:

    Please Login or Register  to view this content.

  5. #5
    Forum Contributor
    Join Date
    08-10-2010
    Location
    Tavira, POrtugal
    MS-Off Ver
    Excel 2010
    Posts
    132

    Re: Find text, if not paste in the first blank cell

    you can put directly in the project because I am afraid of doing something wrong.
    thank you
    Last edited by davesexcel; 05-12-2012 at 08:41 AM.

  6. #6
    Forum Moderator davesexcel's Avatar
    Join Date
    02-19-2006
    Location
    Regina
    MS-Off Ver
    MS 365
    Posts
    13,475

    Re: Find text, if not paste in the first blank cell

    Your code loops through all the sheets in your workbook searching for the the inputbox criteria, is the inputbox criteria supposed show up on each worksheet that returns no results?

  7. #7
    Forum Contributor
    Join Date
    08-10-2010
    Location
    Tavira, POrtugal
    MS-Off Ver
    Excel 2010
    Posts
    132

    Re: Find text, if not paste in the first blank cell

    yes, if not found the specifi text.

  8. #8
    Forum Contributor
    Join Date
    08-10-2010
    Location
    Tavira, POrtugal
    MS-Off Ver
    Excel 2010
    Posts
    132

    Re: Find text, if not paste in the first blank cell

    I made the change as you said, but nothing done. it does not puts the word in the right direction. and do not stop the search for value.
    Last edited by davesexcel; 05-12-2012 at 09:06 AM. Reason: You do not need to quote, previous posts, it looks tacky.

  9. #9
    Valued Forum Contributor StevenM's Avatar
    Join Date
    03-23-2008
    Location
    New Lenox, IL USA
    MS-Off Ver
    2007
    Posts
    910

    Re: Find text, if not paste in the first blank cell

    Try this:

    Please Login or Register  to view this content.

  10. #10
    Forum Contributor
    Join Date
    08-10-2010
    Location
    Tavira, POrtugal
    MS-Off Ver
    Excel 2010
    Posts
    132

    Re: Find text, if not paste in the first blank cell

    You do not have to quote every single post.

    with this macro is already putting the word when it is not found, but does not select the word when it already exists.
    thank you for your help.
    let's see if I can do that select pre-existing words.
    I'll have to put this macro with one of the parties of my first macro. correct?
    Last edited by davesexcel; 05-12-2012 at 09:15 AM.

  11. #11
    Valued Forum Contributor StevenM's Avatar
    Join Date
    03-23-2008
    Location
    New Lenox, IL USA
    MS-Off Ver
    2007
    Posts
    910

    Re: Find text, if not paste in the first blank cell

    Select cell found selected.

    Please Login or Register  to view this content.

  12. #12
    Forum Contributor
    Join Date
    08-10-2010
    Location
    Tavira, POrtugal
    MS-Off Ver
    Excel 2010
    Posts
    132

    Re: Find text, if not paste in the first blank cell

    Quote Originally Posted by StevenM View Post
    Select cell found selected.

    Please Login or Register  to view this content.
    thank you very much, is excellent.

    one more thing. is it possible the cell where the word was inserted by not being available, be selected. such as when the word is already there.
    Last edited by Birnen; 05-12-2012 at 09:50 AM.

  13. #13
    Valued Forum Contributor StevenM's Avatar
    Join Date
    03-23-2008
    Location
    New Lenox, IL USA
    MS-Off Ver
    2007
    Posts
    910

    Re: Find text, if not paste in the first blank cell

    is it possible the cell where the word was inserted by not being available, be selected. such as when the word is already there.
    Please Login or Register  to view this content.
    Last edited by StevenM; 05-12-2012 at 10:09 AM. Reason: Notes added

  14. #14
    Forum Contributor
    Join Date
    08-10-2010
    Location
    Tavira, POrtugal
    MS-Off Ver
    Excel 2010
    Posts
    132

    Re: Find text, if not paste in the first blank cell

    Quote Originally Posted by StevenM View Post
    Please Login or Register  to view this content.
    work 5 stars
    thank you, I do not know how to thank you

+ 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