+ Reply to Thread
Results 1 to 4 of 4

macro for copying data from invoice to another sheet

  1. #1
    Registered User
    Join Date
    02-25-2014
    Location
    Canada
    MS-Off Ver
    Excel 2007
    Posts
    1

    macro for copying data from invoice to another sheet

    Hello

    I am looking for a macro to do the following.

    I have a sheet named invoice. There is a button on the sheet, once clicked, I want it to copy data to another sheet that's tab reflects a date. The tab's name is a date populated by a macro that copies the data(date) in B3 cell on the same sheet to the tab.

    For example. The tab reflects a pay period cut off date. January 15th, January 30th and so on. There are 24 date sheets.

    So I want to be able to fill out my invoice, click the button and have it copy to the appropriate sheet with that date range. The data I wish to copy from the invoice sheet is

    the invoice number C2

    the date BC3

    the client B7

    the amount pre tax E23

    if the invoice's date is between January 1-15 the data is copied to sheet January 15

    If the invoice's date is between January 16-31 the data is copied to sheet January 30

    If the invoice's date is between February 1-15 the dat is copied to sheet February 15

    And so on.

    The problem is the tabs on the date sheets could possibly change. My company sometimes changes cutoff dates. That is why I need a macro that can be with two ranges. 1 -15 16-31

    If I decide to change the two ranges (e.g. 26-12 13-25) I can change it in the macro.

    I hope this makes sense. I am sure there will be questions.

    Thanks in advance

  2. #2
    Forum Guru xladept's Avatar
    Join Date
    04-14-2012
    Location
    Pasadena, California
    MS-Off Ver
    Excel 2003,2010
    Posts
    12,378

    Re: macro for copying data from invoice to another sheet

    Attach a sample workbook. Make sure there is just enough data to demonstrate your need. Include a BEFORE sheet and an AFTER sheet in the workbook if needed to show the process you're trying to complete or automate. Make sure your desired results are shown, mock them up manually if necessary.

    Remember to desensitize the data.

    Click on GO ADVANCED and use the paperclip icon to open the upload window.

    View Pic
    If I've helped you, please consider adding to my reputation - just click on the liitle star at the left.

    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~(Pride has no aftertaste.)

    You can't do one thing. XLAdept

    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~aka Orrin

  3. #3
    Registered User
    Join Date
    02-19-2013
    Location
    jeddah, saudiariabia
    MS-Off Ver
    Excel 2007
    Posts
    3

    Re: macro for copying data from invoice to another sheet

    I hope this file is useful for u!!
    Attached Files Attached Files

  4. #4
    Forum Guru xladept's Avatar
    Join Date
    04-14-2012
    Location
    Pasadena, California
    MS-Off Ver
    Excel 2003,2010
    Posts
    12,378

    Re: macro for copying data from invoice to another sheet

    Hi Jamril,

    There are no date tabs on your sample and there is nothing in BC3 and wouldn't you want all the categories on your date tab?? -


    Oops! This is hummer's thread - Hey, hummer - Welcome to the Forum!
    Last edited by xladept; 02-06-2016 at 12:34 PM.

+ 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. Replies: 1
    Last Post: 11-15-2019, 02:57 AM
  2. Macro for copying data from First sheet to all the other sheets
    By sweetpulp2004 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 10-28-2014, 12:22 AM
  3. Replies: 1
    Last Post: 12-03-2013, 04:19 AM
  4. Macro for copying the data from one sheet and insert the same in next sheet
    By Thinker8 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 11-02-2013, 05:51 PM
  5. [SOLVED] Macro for copying data from one column in sheet 2 based on two criterias in sheet 1
    By baardings in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 11-13-2012, 01:50 PM
  6. Need Macro for copying data in new sheet from all other sheets
    By humacdeep in forum Excel Programming / VBA / Macros
    Replies: 10
    Last Post: 09-18-2011, 12:27 PM
  7. Need help with +1 counter on invoice number and copying macro
    By scionkai6 in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 08-12-2008, 09:44 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