+ Reply to Thread
Results 1 to 4 of 4

Search for value in row. if found, copy column formulas into found column range

  1. #1
    Forum Contributor
    Join Date
    07-29-2013
    Location
    Oshawa
    MS-Off Ver
    Excel 2010
    Posts
    660

    Search for value in row. if found, copy column formulas into found column range

    Hi everyone,

    I have a workbook with multiple sheets. In the Intro sheet range M6 is a formula driven value. What I'm trying to do is have a macro which will search through each worksheet in the workbook in row 9, find a matching value to the one in the Intro sheet range M6. When the value is found, it will then copy the FORMULAS (not values) from range("B10:B100") in worksheet Formulas into the found worksheet starting at row 9, offset(3,0) so the paste would start on row 12. Below is the code I currently have. I'm not getting any errors, but its also not finding any values:

    Please Login or Register  to view this content.
    Any ideas?

    Thanks!!

  2. #2
    Forum Expert
    Join Date
    08-28-2014
    Location
    Texas, USA
    MS-Off Ver
    2016
    Posts
    1,796

    Re: Search for value in row. if found, copy column formulas into found column range

    Please Login or Register  to view this content.
    I'm interested in starting a career working with VBA, if anyone knows of any opportunities!

  3. #3
    Forum Contributor
    Join Date
    07-29-2013
    Location
    Oshawa
    MS-Off Ver
    Excel 2010
    Posts
    660

    Re: Search for value in row. if found, copy column formulas into found column range

    EDITED

    Hi walrus,

    Thanks very much for your updated code. Your code is finding the appropriate cell in each worksheet, however the fomulas from the Formulas worksheet are not being copied into the worksheet with the found value offset by 3 rows. It appears only the first cell in the Formulas Range ("B100") is being copied, but the remaining cells in the range are not.

    Any ideas?

    Thanks!!
    Last edited by Groovicles; 05-23-2017 at 08:26 AM.

  4. #4
    Forum Contributor
    Join Date
    07-29-2013
    Location
    Oshawa
    MS-Off Ver
    Excel 2010
    Posts
    660

    Re: Search for value in row. if found, copy column formulas into found column range

    Worked it out. If anyone's interested, I change:

    Please Login or Register  to view this content.
    to:

    Please Login or Register  to view this content.

+ 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. Search for value in a range and overwrite if found and create new if not found
    By mm671750 in forum Excel Programming / VBA / Macros
    Replies: 12
    Last Post: 02-04-2016, 01:19 PM
  2. Replies: 14
    Last Post: 10-29-2015, 07:29 PM
  3. Replies: 3
    Last Post: 03-31-2014, 01:00 PM
  4. Replies: 3
    Last Post: 03-04-2014, 04:55 AM
  5. Replies: 8
    Last Post: 06-04-2013, 04:36 AM
  6. [SOLVED] Search a column for a value if found copy entire row and paste
    By awagenhurst in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 12-07-2012, 03:48 PM
  7. Macro to Search column and if found, copy a cell within the worksheet
    By SKooT1027 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 06-16-2008, 01:12 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