+ Reply to Thread
Results 1 to 3 of 3

Copy range A of cells if value is in range B & paste in range B/Multiple Or

  1. #1
    Registered User
    Join Date
    10-17-2018
    Location
    Munich
    MS-Off Ver
    Office 365
    Posts
    4

    Smile Copy range A of cells if value is in range B & paste in range B/Multiple Or

    Hello guys,
    I have 2 sheets, one contains Accounts (“ACC”), and the other is for loading(“LOAD”)
    I am looking for a code which would look :
    if the value contained in the range A of sheet(“ACC”) is in one of the cells of range A of (“LOAD”) Then
    Copy the range(B to M) from sheet(“ACC”) and paste it in range (B to M) in LOAD sheet

    e.g.:

    Capturesss.PNG

    Please Login or Register  to view this content.
    This is the code I have, but ACC sheet can contain 200 accounts and I don't want to repeat "Or" 100 times

    Anyone can help?

    Thank you very much,
    Jeremy

  2. #2
    Forum Guru
    Join Date
    08-15-2004
    Location
    Tokyo, Japan
    MS-Off Ver
    2013 O.365
    Posts
    22,464

    Re: Copy range A of cells if value is in range B & paste in range B/Multiple Or

    Looks like (untested)
    Please Login or Register  to view this content.
    Last edited by jindon; 10-17-2018 at 06:41 AM. Reason: Fixed match type after seeing pic.

  3. #3
    Registered User
    Join Date
    10-17-2018
    Location
    Munich
    MS-Off Ver
    Office 365
    Posts
    4

    Re: Copy range A of cells if value is in range B & paste in range B/Multiple Or

    Good morning,

    I thought I answered already so a bit late but thank you
    I have a second question, let's assume I have n sheets, I want to copy the values of Sheet("ACC") in Sheet n.
    In sheet("ACC") I have specified in which sheet n I want to copy and paste value i.e. :
    VBA3.PNG

    Here the code I used so far:
    Please Login or Register  to view this content.
    For the moement it copies the first matching column in sheet n, I have tried with double match but I failed.

    Anyone ?

    Thank you very much,
    Jeremy

+ 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. Copy multiple range and paste them predefined range
    By HaroonSid in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 05-24-2017, 02:05 AM
  2. [SOLVED] copy only non-blank cells in range and paste to new range.
    By scrabtree23 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 10-29-2015, 08:10 PM
  3. [SOLVED] Help! - Copy Range (Sheet1,A10:F50), Paste Range (Sheet 2,A1:F41), Offset Range & Repeat
    By cjtimmer in forum Excel Programming / VBA / Macros
    Replies: 11
    Last Post: 09-30-2015, 06:27 PM
  4. [SOLVED] Search for multiple matching cells and copy/paste range?
    By papercut in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 04-01-2014, 11:24 AM
  5. Copy paste a particular range of cells As values in multiple tabs
    By rshnkmr39 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 04-29-2013, 10:43 AM
  6. MAcro to copy paste a certain range of cells in multiple tabs as values
    By rshnkmr39 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 04-29-2013, 03:59 AM
  7. Change range of cells within VBA macro and copy and paste to fixed cell range
    By Mannyny in forum Excel Programming / VBA / Macros
    Replies: 10
    Last Post: 07-20-2012, 11:51 AM

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