+ Reply to Thread
Results 1 to 6 of 6

copy names and values of columns from multiple sheets to one sheet and subtract

  1. #1
    Forum Contributor
    Join Date
    06-02-2019
    Location
    libya
    MS-Off Ver
    2010
    Posts
    734

    copy names and values of columns from multiple sheets to one sheet and subtract

    hello
    i would copy values of columns b,c from two sheets(total,out) to sheet(list) from range b: c and subtract between c,d and the result in col e i put expected result in sheet (list)
    thanks
    Attached Files Attached Files

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

    Re: copy names and values of columns from multiple sheets to one sheet and subtract

    You have extra space in "List " sheet name.
    Please Login or Register  to view this content.

  3. #3
    Forum Moderator davesexcel's Avatar
    Join Date
    02-19-2006
    Location
    Regina
    MS-Off Ver
    MS 365
    Posts
    13,482

    Re: copy names and values of columns from multiple sheets to one sheet and subtract

    Hello,
    Please Login or Register  to view this content.
    See attached
    Attached Files Attached Files

  4. #4
    Forum Contributor
    Join Date
    06-02-2019
    Location
    libya
    MS-Off Ver
    2010
    Posts
    734

    Re: copy names and values of columns from multiple sheets to one sheet and subtract

    brilliant ! jindon this is what i want but i ask about do that automatically without button do that by worksheet change event i no know if i get in into change event this code or the code totally change ,any advice, please?

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

    Re: copy names and values of columns from multiple sheets to one sheet and subtract

    You can call it from Worksheet_Activate Event, so that it updates every time you select back "List " sheet from other sheet.
    I have changed the sub procedure name from "test" to "UpdateMe".
    To "List " sheet code module.
    Please Login or Register  to view this content.
    To a Standard code module
    Please Login or Register  to view this content.
    Attached Files Attached Files

  6. #6
    Forum Contributor
    Join Date
    06-02-2019
    Location
    libya
    MS-Off Ver
    2010
    Posts
    734

    Re: copy names and values of columns from multiple sheets to one sheet and subtract

    great work !jindon & daves the codes work excellently many thanks guys

+ 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: 9
    Last Post: 10-16-2017, 03:25 AM
  2. [SOLVED] Copy Paste From Rawdata Sheets to Multiple Sheets Based on Sheet names
    By farrukh in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 07-16-2017, 11:01 PM
  3. Replies: 5
    Last Post: 12-18-2014, 04:20 PM
  4. Using VBA to copy multiple sheets as values to another sheet
    By Excel15 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 06-24-2014, 09:44 AM
  5. Macro to copy 3 columns of data from multiple sheets into 3 columns on 1 sheet
    By bballdcm2007 in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 12-15-2012, 04:37 PM
  6. Copy non-sequential columns with headers (from multiple sheets) to one consolidated sheet
    By constantmallee in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 10-18-2012, 02:24 PM
  7. Search for Multiple String Values on Multiple Sheets and Copy Rows to New Sheet
    By rrtikker in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 03-15-2012, 12:21 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