+ Reply to Thread
Results 1 to 13 of 13

repeat date and name in columns for invoice information based on sheet name

  1. #1
    Forum Contributor
    Join Date
    07-14-2021
    Location
    LY
    MS-Off Ver
    2019
    Posts
    298

    repeat date and name in columns for invoice information based on sheet name

    Hi guys
    I want copy invoice details from SL sheet to specific sheet based on cell D3 contains sheet name .
    should repeat date and name and invoice no for B3,B5,B7 from SL to SH sheet in columns DATE, NAME, INVOICE NO up to TOTAL row as in my example based on sheet name in D3 also copy ITEM, ID,QTY ,UNIT PRICE ,TOTAL columns to ITEM, ID,QTY ,UNIT PRICE ,TOTAL columns in SH sheet after that should insert TOTAL row to sum column G as I did in requirement sheet . after copy from SL sheet I want clear cells B5,B7,A10:D with ignore any cell contains formula from clearing . as to TOTAL row in SL sheet is dynamic will add new rows before TOTAL row when I need more ID .
    every time I will add new data(new details invoices in SL sheet) for so could reach the data for each sheet for about 4000 rows and should copy new details invoices to the bottom in each sheet.
    Attached Files Attached Files

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

    Re: repeat date and name in columns for invoice information based on sheet name

    Please Login or Register  to view this content.

  3. #3
    Forum Contributor
    Join Date
    07-14-2021
    Location
    LY
    MS-Off Ver
    2019
    Posts
    298

    Re: repeat date and name in columns for invoice information based on sheet name

    thanks ,but I want copy to the bottom ,not replace old data with new data and I want clearing filled data in SL sheet after copy to specific sheet as I said
    I want clear cells B5,B7,A10:D with ignore any cell contains formula from clearing . as to TOTAL row in SL sheet is dynamic will add new rows before TOTAL row when I need more ID .

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

    Re: repeat date and name in columns for invoice information based on sheet name

    Please Login or Register  to view this content.

  5. #5
    Forum Contributor
    Join Date
    07-14-2021
    Location
    LY
    MS-Off Ver
    2019
    Posts
    298

    Re: repeat date and name in columns for invoice information based on sheet name

    thanks again
    can avoid clear TOTAL word in last row for column A ? and I don't want repeating DAtE,NAME ,INVOICE NO in lastrow (TOTAL) ,sorry about my mistake in OP!

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

    Re: repeat date and name in columns for invoice information based on sheet name

    Change
    Please Login or Register  to view this content.
    to
    Please Login or Register  to view this content.
    If this is not what you want, upload a workbook showing After SL sheet.

  7. #7
    Forum Contributor
    Join Date
    07-14-2021
    Location
    LY
    MS-Off Ver
    2019
    Posts
    298

    Re: repeat date and name in columns for invoice information based on sheet name

    OK just see the TOTAL in lastrow for sh sheet doesn't repeat filling DATE,NAME,INVOICE NO , this is what I want it .
    another thing after clear data and if I run the macro there is no data in SL sheet will continue copying to the bottom without data except ITEM and TOTAL row I don't need that as in WS sheet ,I don't want it . I want running the macro based on D3 is sheet name so I adjusted this line
    Please Login or Register  to view this content.
    if the D3 is empty then will not copy anything (because there is no sheet name to matching) and if I write wrong sheet name in D3 then will pops message "error sheet name".
    Attached Files Attached Files

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

    Re: repeat date and name in columns for invoice information based on sheet name

    Just add one line before On Error Resume Next
    Please Login or Register  to view this content.

  9. #9
    Forum Contributor
    Join Date
    07-14-2021
    Location
    LY
    MS-Off Ver
    2019
    Posts
    298

    Re: repeat date and name in columns for invoice information based on sheet name

    I'm not sure if you read well my last post !
    it doesn't solve anything what I ask for it.

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

    Re: repeat date and name in columns for invoice information based on sheet name

    Please Login or Register  to view this content.

  11. #11
    Forum Contributor
    Join Date
    07-14-2021
    Location
    LY
    MS-Off Ver
    2019
    Posts
    298

    Re: repeat date and name in columns for invoice information based on sheet name

    thanks again
    but still filling DATE , NAME , INVOICE NO for adjacent cells for TOTAL row . I don't want it as I posted in SH sheet.

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

    Re: repeat date and name in columns for invoice information based on sheet name

    What you are presenting are confusing.

    I always looked at "requirement" sheet for the result, so I wrote like that.
    Please Login or Register  to view this content.

  13. #13
    Forum Contributor
    Join Date
    07-14-2021
    Location
    LY
    MS-Off Ver
    2019
    Posts
    298

    Re: repeat date and name in columns for invoice information based on sheet name

    What you are presenting are confusing.
    my apologies !
    now every thing is ok .
    thank you so much for your time & help .

+ 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. Generate list of invoice dates based on start date and invoice frequency
    By yasmin89 in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 09-14-2020, 02:31 PM
  2. Invoice Information Based On Invoice Number
    By bj90 in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 07-25-2019, 05:35 PM
  3. Replies: 10
    Last Post: 02-20-2019, 11:34 AM
  4. [SOLVED] Need to copy information from one sheet to another based on date.
    By taylorsm in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 11-17-2016, 04:37 PM
  5. Replies: 4
    Last Post: 11-04-2012, 12:43 PM
  6. Replies: 1
    Last Post: 09-12-2012, 10:40 AM
  7. Invoice Based on information in Timesheet.
    By benswelding in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 10-20-2008, 07:08 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