+ Reply to Thread
Results 1 to 6 of 6

VBA Code to copy sales data to different sheet and clear

  1. #1
    Registered User
    Join Date
    03-19-2014
    Location
    India
    MS-Off Ver
    Excel 2013
    Posts
    4

    VBA Code to copy sales data to different sheet and clear

    I have 2 Worksheet
    1. Invoice
    2. Sales

    I want to copy these cells from Sheet Invoice
    Cell F1 i.e Invoice No
    Cell F37 i.e Invoice Total Amount
    Cell F38 i.e Payment Received
    Cell F39 i.e Due Amount

    To Sales Sheet on Column A, B, C & D respectively and then clear the Sheet for next entry.

    Can you help me out with the VBA code for this.

  2. #2
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,463

    Re: VBA Code to copy sales data to different sheet and clear

    Welcome to the forum

    Please attach a sample workbook (not a picture or pasted copy). 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 then scroll down to Manage Attachments to open the upload window.
    Trevor Shuttleworth - Retired Excel/VBA Consultant

    I dream of a better world where chickens can cross the road without having their motives questioned

    'Being unapologetic means never having to say you're sorry' John Cooper Clarke


  3. #3
    Registered User
    Join Date
    03-19-2014
    Location
    India
    MS-Off Ver
    Excel 2013
    Posts
    4

    Re: VBA Code to copy sales data to different sheet and clear

    Please find attached the the Workbook
    Attached Files Attached Files

  4. #4
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,463

    Re: VBA Code to copy sales data to different sheet and clear

    On the Sales Sheet, you have Invoice Numbers 1 to 150 pre-filled. Do you just want to align the sales figures with the invoice numbers?

  5. #5
    Registered User
    Join Date
    03-19-2014
    Location
    India
    MS-Off Ver
    Excel 2013
    Posts
    4

    Re: VBA Code to copy sales data to different sheet and clear

    Not exactly. I will remove those 150 Numbers and that too should be filled as and when entries are made.

  6. #6
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,463

    Re: VBA Code to copy sales data to different sheet and clear

    OK, try this

    Please Login or Register  to view this content.

+ 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 and clear data and print sheet VBA
    By rashidn73 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 01-09-2016, 04:02 AM
  2. Need to type the code to make a button that will copy data into next clear line below
    By stevelock92 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 10-06-2015, 08:58 AM
  3. [SOLVED] Help with a macro to copy data to other sheet and clear cells
    By bazofio in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 04-17-2014, 07:59 PM
  4. Replies: 1
    Last Post: 11-28-2013, 02:10 AM
  5. [SOLVED] Sales report from sales data sheet if i select the date
    By loki7431 in forum Excel General
    Replies: 4
    Last Post: 02-06-2013, 09:43 PM
  6. Problem with copy data from "sales" sheet to each customer sheeet
    By jimparker65 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 01-14-2013, 04:46 AM
  7. Macro to copy Dyanmic lists then copy sheet and clear the original data
    By twiggywales in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 11-30-2012, 01:06 PM

Tags for this Thread

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