+ Reply to Thread
Results 1 to 11 of 11

put headers and values in array & copy values

  1. #1
    Forum Contributor
    Join Date
    01-08-2021
    Location
    Asia
    MS-Off Ver
    2016
    Posts
    324

    put headers and values in array & copy values

    hi
    I have data in sheet1 . some values should repeat more than one time when copy to sheet2 as DATE and ORDER based on last filled data in COL B (BRAND)
    and some values are not existed at all in sheet1 it supposes creating by put the headers and the values in array and repeat the value when copy to sheet2 as ACCOUNT NO(COL D) , REF(COLF), CASE(COL L) finally if there is a macro to create all of data based on sheet1 with the same formatting and borders except the formulas shouldn't copy as formula just show as a value and what I explained .
    thanks in advance
    Attached Files Attached Files

  2. #2
    Forum Contributor
    Join Date
    01-08-2021
    Location
    Asia
    MS-Off Ver
    2016
    Posts
    324

    Re: put headers and values in array & copy values

    any body help?

  3. #3
    Valued Forum Contributor
    Join Date
    06-23-2021
    Location
    Romania
    MS-Off Ver
    2021, 365 v 2208
    Posts
    722

    Re: put headers and values in array & copy values

    Hi,
    maybe this:
    HTML Code: 
    Diana Tanase


    If the solutions offered helped you to solve your problem, then mark the thread as SOLVED (thread tools in the top menu) and you can click on * to add reputation to those who helped you, as a way to say thank you !

  4. #4
    Forum Contributor
    Join Date
    01-08-2021
    Location
    Asia
    MS-Off Ver
    2016
    Posts
    324

    Re: put headers and values in array & copy values

    thanks for your trying . but as I said the header and value are not existed in sheet1 then should put the headers and the values into array by code and copy as result in sheet2

  5. #5
    Valued Forum Contributor
    Join Date
    06-23-2021
    Location
    Romania
    MS-Off Ver
    2021, 365 v 2208
    Posts
    722

    Re: put headers and values in array & copy values

    Maybe this:
    HTML Code: 

  6. #6
    Forum Contributor
    Join Date
    01-08-2021
    Location
    Asia
    MS-Off Ver
    2016
    Posts
    324

    Re: put headers and values in array & copy values

    yes it creates the headers . now it remains the value for the headers (ASD1,11411234,AS.11,UNPAID)

    it should copy under header ORDER "ASD1" and copy under header ACCOUNT NO "11411234" and copy under header REF "AS.11" and copy under header CASE "UNPAID"
    thanks again

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

    Re: put headers and values in array & copy values

    Please Login or Register  to view this content.

  8. #8
    Forum Contributor
    Join Date
    01-08-2021
    Location
    Asia
    MS-Off Ver
    2016
    Posts
    324

    Re: put headers and values in array & copy values

    @jindon thanks but I think there is not right into the code see the highlighted data as in file.
    Attached Files Attached Files

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

    Re: put headers and values in array & copy values

    No idea how you make it like that.
    Attached Files Attached Files

  10. #10
    Forum Contributor
    Join Date
    01-08-2021
    Location
    Asia
    MS-Off Ver
    2016
    Posts
    324

    Re: put headers and values in array & copy values

    strange ! your file works as what I want .
    thanks so much for your assistance

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

    Re: put headers and values in array & copy values

    Its not my file, YOURS.

+ 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] Transpose rows in column and copy adjacent values and headers multiple times
    By PaulM100 in forum Excel Programming / VBA / Macros
    Replies: 10
    Last Post: 06-29-2020, 09:53 AM
  2. [SOLVED] Finding values in multiple headers using an Array formula
    By Hazlitt in forum Excel General
    Replies: 11
    Last Post: 10-29-2018, 11:38 AM
  3. Copy array of values from one workbook to another
    By bibu in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 03-13-2014, 02:08 PM
  4. Macro to copy row values based on a identical column headers
    By Vijaya Pratap in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 02-25-2013, 04:12 AM
  5. Replies: 2
    Last Post: 05-09-2012, 01:30 PM
  6. Copy values from Excel Range to VBA array.
    By Bjornar in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 12-29-2007, 05:32 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