+ Reply to Thread
Results 1 to 6 of 6

Run Macro to select cells with value =1

  1. #1
    Registered User
    Join Date
    03-17-2006
    Posts
    29

    Run Macro to select cells with value =1

    I have a need and thanks in advance to everyone who can help me with this:
    Run a macro to copy from cell B2 in worksheet2, then paste that into every cell that has the value = 1 in worksheet1.Range("B2:Z40"). Cells in range B2:Z40 will be updated each week with the value varied from 1 to 10.
    Last edited by go4cdt; 03-04-2009 at 02:18 PM.

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

    Re: Run Macro to select cells with value =1

    Perhaps this would work for you

    Please Login or Register  to view this content.

  3. #3
    Registered User
    Join Date
    08-18-2008
    Location
    Singapore
    Posts
    79

    Re: Run Macro to select cells with value =1

    Do you have a sample document?

  4. #4
    Registered User
    Join Date
    03-17-2006
    Posts
    29

    Re: Run Macro to select cells with value =1

    I tried what Dave instructed but it does not seem to work for me. I am attaching the sample doc. I have changed a bit to shrink the database smaller. In Sheet1, range B6:L17 contains numbers = 1;2;3;4 & NA. A macro I am looking for is to copy cell B6 in Sheet3 and paste the image contained in B6 to all cells with the value = 1 in Sheet1. Then copy B7 in Sheet3, paste it into all cells with value =2 in Sheet1. Continue the rest with value 3, 4 and NA.
    And maybe a separate macro to delete all images in Sheet1 (to reset the data).
    I appreciate any of your help
    Attached Files Attached Files

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

    Re: Run Macro to select cells with value =1

    I could not help but notice, your original question is not the same as what you really wanted.

    Check out your Workbook now...

    If you feel the question is solved then mark the thread as solved by Advance editing your first post and select the solved prefix.
    Attached Files Attached Files

  6. #6
    Registered User
    Join Date
    03-17-2006
    Posts
    29

    Smile Re: Run Macro to select cells with value =1

    Wonderful! Thank you so much

+ 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