+ Reply to Thread
Results 1 to 2 of 2

Need help with VBA code which allows copying pasting data between sheets if conditions met

  1. #1
    Registered User
    Join Date
    04-25-2019
    Location
    Singapore
    MS-Off Ver
    2016
    Posts
    1

    Question Need help with VBA code which allows copying pasting data between sheets if conditions met

    Hi all,
    I will need to ask for help to develop a VBA which allows me to tranfer specific data from sheet 2 into sheet 1 if conditions is met.

    So for example:
    In Setting sheet, the information of each type of systems are separated into different tables. For example, I will need to copy information of DX Unit into the AIR Template sheet. All the information before Line 8 in Setting Sheet should appear in AIR template Line 30 and below.

    And also the heading in each columns for both sheets are different. Hence, I indicated the column number which the information in Setting sheet (Row 1) should appear in which column in AIR Template sheet (Row 7) . So for example, Setting Sheet Column no. 7 should appear in AIR Template Sheet Column No. 7.

    Currently, I facing trouble in developing a VBA code which able to fulfill both criteria. Will appreciate greatly for your help.
    Thank you!
    Attached Files Attached Files
    Last edited by huimincrystal; 11-14-2019 at 08:05 AM.

  2. #2
    Forum Guru
    Join Date
    08-28-2014
    Location
    USA
    MS-Off Ver
    Excel 2019
    Posts
    17,559

    Re: Need help with VBA code which allows copying pasting data between sheets if conditions

    As this has not gotten a response in over 48 hours, perhaps a formula based proposal might be acceptable.
    For E31 and down to E43:
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    Note that if columns E:G were not merged you could simply drag the formula over, however as is:
    For H31 dragged over to Q31 and then, while H31:Q31 are still selected, dragged down to Q43:
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    For S31 and dragged down to S48:
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    Let us know if you have any questions.
    Consider taking the time to add to the reputation of everybody that has taken the time to respond to your query.

+ 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. [SOLVED] Copying and Pasting entire rows on conditions
    By Nuccio92 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 12-03-2015, 02:01 PM
  2. [SOLVED] Macro for copying data from sheet1 and pasting to another when specific conditions are met
    By MathewPol in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 04-04-2014, 10:00 AM
  3. [SOLVED] copying and pasting more than one column between sheets
    By macrorookie in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 02-05-2014, 11:53 PM
  4. VBA code for copying and pasting data range from external workbook(s)
    By Adsup01 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 02-18-2013, 02:07 PM
  5. macro or vba code for copying and pasting data from one worksheet to another
    By jruiz13 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 10-03-2011, 10:05 AM
  6. Modifying code for copying and pasting between sheets
    By jrpettit in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 07-15-2008, 05:09 PM
  7. Code not copying and pasting data - basic error?
    By Kayote in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 04-23-2008, 10:57 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