+ Reply to Thread
Results 1 to 6 of 6

Macro to find text from a range in another range and fill a cell accordingly

  1. #1
    Registered User
    Join Date
    07-27-2017
    Location
    Madrid, Spain
    MS-Off Ver
    2013
    Posts
    3

    Macro to find text from a range in another range and fill a cell accordingly

    Hello everyone,

    I am learning VBA programming and would like to receive feedback on the following macro, that should find text (a size expressed as eg. 300x200) from a range into another range (which contains a technical description including size) and if it does so then fill a column (blank) with the size found. Apparently it executes without filling any of the destination cell. Could you please help me understand why it doesn't work?

    Please Login or Register  to view this content.
    Thanks,

    Angelo
    Last edited by aspadaro; 07-28-2017 at 04:09 AM.

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

    Re: Macro to find text from a range in another range and fill a cell accordingly

    I made the ranges smaller for testing purposes.

    Please Login or Register  to view this content.

  3. #3
    Registered User
    Join Date
    07-27-2017
    Location
    Madrid, Spain
    MS-Off Ver
    2013
    Posts
    3

    Re: Macro to find text from a range in another range and fill a cell accordingly

    Thanks for you reply davesexecl. It didn't work. Still empty cells. Any other idea?

    Thanks again!
    Last edited by aspadaro; 07-28-2017 at 03:49 AM. Reason: Unnecessary quotation removed.

  4. #4
    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,649

    Re: Macro to find text from a range in another range and fill a cell accordingly

    Thanks for adding the code tags.
    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.

  5. #5
    Registered User
    Join Date
    07-27-2017
    Location
    Madrid, Spain
    MS-Off Ver
    2013
    Posts
    3

    Re: Macro to find text from a range in another range and fill a cell accordingly

    You're welcome

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

    Re: Macro to find text from a range in another range and fill a cell accordingly

    Attaching a sample workbook enables others to work on your problem:

    To attach a sample workbook. Make sure there is just enough data to make it clear what is needed. Include BEFORE/AFTER sheets if needed to show the process you're trying to complete or automate. Remember to desensitize the data.

    Click on GO ADVANCED and click "manage attachments" to open the upload window.





    To add a file to a post

+ 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: 1
    Last Post: 05-18-2016, 05:00 AM
  2. Replies: 1
    Last Post: 02-04-2014, 01:57 PM
  3. macro to find text string in cell range and paste in other cell range
    By slearner1 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 03-05-2013, 11:15 AM
  4. Find text in range of cells and add to table if it does not exist in range
    By dgadler1 in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 02-12-2013, 12:54 PM
  5. Replies: 7
    Last Post: 01-24-2013, 06:55 PM
  6. If any cell in range is changed to a certain value/text, fill cells to right with pattern
    By suzanchesson in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 04-10-2012, 09:47 AM
  7. Find the POSITION IN A RANGE of text in a string that matches value(s) in a range
    By Cornell1992 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 03-14-2006, 03:25 PM

Tags for this Thread

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