+ Reply to Thread
Results 1 to 12 of 12

bring data from sheet to another based on topics headers and specific column

  1. #1
    Forum Contributor
    Join Date
    06-02-2019
    Location
    libya
    MS-Off Ver
    2010
    Posts
    758

    bring data from sheet to another based on topics headers and specific column

    hello
    I have this macro it brings specific data form sheet1 to sheet2 based on headers but I would also mod the code or alternative when I write the code in COL A in sheet2 then brings the values based on values in COL A and the topic headers I put some data when search based on COL A and the headers in sheet2
    HTML Code: 
    Attached Files Attached Files
    Last edited by ABDELFATTA; 04-29-2021 at 12:45 PM.

  2. #2
    Forum Expert nankw83's Avatar
    Join Date
    08-31-2015
    Location
    Kuwait
    MS-Off Ver
    365
    Posts
    1,713

    Re: bring data from sheet to another based on topics headers and specific column

    Hi ABDELFATTA,

    Does the code you posted work as needed ? What exactly the change you need ? It is not clear to me

  3. #3
    Forum Contributor
    Join Date
    06-02-2019
    Location
    libya
    MS-Off Ver
    2010
    Posts
    758

    Re: bring data from sheet to another based on topics headers and specific column

    what I want when when write the values in COL A in sheet2 based on COL A (CODE) in sheet1 then brings the data based on headers
    my code brings the data when write the headers in sheet2 but I would add condition also depends what write in COL A as i put the result should brings the data based on write in COL A and headers but the original code brings all data based on the headers

  4. #4
    Forum Expert nankw83's Avatar
    Join Date
    08-31-2015
    Location
    Kuwait
    MS-Off Ver
    365
    Posts
    1,713

    Re: bring data from sheet to another based on topics headers and specific column

    Try this ...
    Please Login or Register  to view this content.
    If I was able to help, you can thank me by clicking the * Add Reputation under my user name

  5. #5
    Forum Contributor
    Join Date
    06-02-2019
    Location
    libya
    MS-Off Ver
    2010
    Posts
    758

    Re: bring data from sheet to another based on topics headers and specific column

    thanks but if I add the rest of headers in sheet2 it doesn't work

  6. #6
    Forum Expert nankw83's Avatar
    Join Date
    08-31-2015
    Location
    Kuwait
    MS-Off Ver
    365
    Posts
    1,713

    Re: bring data from sheet to another based on topics headers and specific column

    Ok, try now ...
    Please Login or Register  to view this content.

  7. #7
    Forum Contributor
    Join Date
    06-02-2019
    Location
    libya
    MS-Off Ver
    2010
    Posts
    758

    Re: bring data from sheet to another based on topics headers and specific column

    it gives error 'This change cannot be performed on a merged cell' in this line
    HTML Code: 

  8. #8
    Forum Expert nankw83's Avatar
    Join Date
    08-31-2015
    Location
    Kuwait
    MS-Off Ver
    365
    Posts
    1,713

    Re: bring data from sheet to another based on topics headers and specific column

    Is this error based on your sample file in post #1 or in your original file ? Because I am not getting this error based on the sample file

  9. #9
    Forum Contributor
    Join Date
    06-02-2019
    Location
    libya
    MS-Off Ver
    2010
    Posts
    758

    Re: bring data from sheet to another based on topics headers and specific column

    yes the same file but version office 2019

  10. #10
    Forum Expert nankw83's Avatar
    Join Date
    08-31-2015
    Location
    Kuwait
    MS-Off Ver
    365
    Posts
    1,713

    Re: bring data from sheet to another based on topics headers and specific column

    Try removing the merged cells in Sheet2 range H9:K14

  11. #11
    Forum Contributor
    Join Date
    06-02-2019
    Location
    libya
    MS-Off Ver
    2010
    Posts
    758

    Re: bring data from sheet to another based on topics headers and specific column

    excellent! it works perfectly thanks for provide me solution

  12. #12
    Forum Expert nankw83's Avatar
    Join Date
    08-31-2015
    Location
    Kuwait
    MS-Off Ver
    365
    Posts
    1,713

    Re: bring data from sheet to another based on topics headers and specific column

    Glad to help & thanks for the Rep+

+ 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 columns with a specific headers to another sheet
    By OKot in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 02-21-2019, 08:41 AM
  2. [SOLVED] vba code to merge headers from 2 sheets at their specific columns position 3rd sheet
    By JEAN1972 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 05-02-2017, 11:41 PM
  3. Replies: 6
    Last Post: 12-13-2016, 03:06 PM
  4. Allocation of columns to other sheet based on matching headers
    By etaver87 in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 05-24-2016, 09:44 AM
  5. Allocation of columns to other sheet based on matching headers
    By etaver87 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 05-24-2016, 09:41 AM
  6. Copying columns from one sheet and pasting to another based on headers
    By magnus12 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 01-08-2015, 10:43 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