+ Reply to Thread
Results 1 to 5 of 5

Copying data from one worksheet to another worksheet

  1. #1
    Registered User
    Join Date
    10-05-2016
    Location
    Houston, Texas
    MS-Off Ver
    365
    Posts
    8

    Copying data from one worksheet to another worksheet

    For tax purposes I need to show my accountant the subtotal and tax amount in a separate column. My first worksheet is my invoice, and the second is my register which pulls data from the invoice.'Range.copy to other worksheets. I'm using the following which works for the subtotal, but I need it to work for each invoice and not just one, so my range I think is wrong. I also cannot get the tax amount to work using a similar formula. What formula should I use for the tax? The attachment option is not working.

    Worksheets("Invoice").Range("D31").Copy Worksheets("Register").Range("F4")
    Attached Files Attached Files
    Last edited by Drillgirl; 10-17-2017 at 11:54 PM. Reason: Added attachment

  2. #2
    Forum Expert Olly's Avatar
    Join Date
    09-10-2013
    Location
    Darlington, UK
    MS-Off Ver
    Excel 2016, 2019, 365
    Posts
    6,284

    Re: Copying data from one worksheet to another worksheet

    To clarify: do you have multiple Invoice sheets, and want your Register sheet to be a summary of all the Invoice sheets?
    let Source = #table({"Question","Thread", "User"},{{"Answered","Mark Solved", "Add Reputation"}}) in Source

    If I give you Power Query (Get & Transform Data) code, and you don't know what to do with it, then CLICK HERE

    Walking the tightrope between genius and eejit...

  3. #3
    Forum Expert Olly's Avatar
    Join Date
    09-10-2013
    Location
    Darlington, UK
    MS-Off Ver
    Excel 2016, 2019, 365
    Posts
    6,284

    Re: Copying data from one worksheet to another worksheet

    I've just noticed your file has a "PostToRegister" sub, which almost does what you want - I'm guessing you want to amend this to also include the Sales Tax amount?

    If that's the case, then simply change this line:
    Please Login or Register  to view this content.

  4. #4
    Registered User
    Join Date
    10-05-2016
    Location
    Houston, Texas
    MS-Off Ver
    365
    Posts
    8

    Re: Copying data from one worksheet to another worksheet

    Thank you.

  5. #5
    Forum Expert Olly's Avatar
    Join Date
    09-10-2013
    Location
    Darlington, UK
    MS-Off Ver
    Excel 2016, 2019, 365
    Posts
    6,284

    Re: Copying data from one worksheet to another worksheet

    If that takes care of your original question, please select Thread Tools from the menu link above and mark this thread as SOLVED. You can also "Add Reputation" to those who helped you. Thanks.

+ 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: 55
    Last Post: 03-17-2017, 10:16 AM
  2. Macro copying data from unopened worksheet to open worksheet
    By chriswiec in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 01-01-2013, 02:14 PM
  3. Replies: 3
    Last Post: 10-16-2012, 09:02 AM
  4. Replies: 1
    Last Post: 06-20-2012, 03:05 PM
  5. Copying filtered data from one worksheet to a worksheet in another workbook
    By welchs101 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 05-27-2011, 09:13 AM
  6. Copying data worksheet to worksheet
    By fallito in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 09-24-2008, 11:40 PM
  7. Replies: 2
    Last Post: 05-21-2005, 07:26 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