+ Reply to Thread
Results 1 to 4 of 4

copy 2 cells from multiple sheets to one sheet

  1. #1
    Registered User
    Join Date
    02-21-2011
    Location
    Canada
    MS-Off Ver
    Excel 2007
    Posts
    30

    copy 2 cells from multiple sheets to one sheet

    Sorry my original post went in the wrong place sorry

    Hi, I am new here and hope I can get some help, I have read several topics on the form and I looks like this is the place for help.
    I have a workbook with 400 sheets called "Lot 1" to "Lot 400 and and sheets "Lot A" through "Lot Z" and lastly sheets "CAB 1" through "CAB 30" On each of these sheets which are Invoices, are the respective Lot, or CAB number in the same cell on each sheet (D12) and on each sheet there is a dolar value representing money owed in cell (K49) My question is how can I have Cell D12 and K49 be sent to a sheet I called AccountsReceivable only if cell K49 has a $value greater then 0. I need the contents of D12 and K49 to be side by side in column A & B on AccountsReceivable sheet

  2. #2
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: copy 2 cells from multiple sheets to one sheet

    A macro would be quickest for this.

    How/Where to install the macro:

    1. Open up your workbook
    2. Get into VB Editor (Press Alt+F11)
    3. Insert a new module (Insert > Module)
    4. Copy and Paste in your code
    Please Login or Register  to view this content.
    5. Get out of VBA (Press Alt+Q)
    6. Save as a macro-enabled workbook

    The macro is installed and ready to use. Press Alt-F8 and select AssembleSummary from the macro list.
    _________________
    Microsoft MVP 2010 - Excel
    Visit: Jerry Beaucaire's Excel Files & Macros

    If you've been given good help, use the icon below to give reputation feedback, it is appreciated.
    Always put your code between code tags. [CODE] your code here [/CODE]

    ?None of us is as good as all of us? - Ray Kroc
    ?Actually, I *am* a rocket scientist.? - JB (little ones count!)

  3. #3
    Registered User
    Join Date
    02-21-2011
    Location
    Canada
    MS-Off Ver
    Excel 2007
    Posts
    30

    Re: copy 2 cells from multiple sheets to one sheet

    Wow thats awsom thank you it works like a charm. 1 question is there a way to automate this or will I need to run the macro manualy when I want to update the data is there a way to have the code run every time a change is made to the workbook. maybe adding some code to a UserForm button control. I have 2 UserForms that are used to imput the data on all the sheets. if I added code to the OK button on each UserForm that ran the macro after the Userform completed. is this possible?

  4. #4
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: copy 2 cells from multiple sheets to one sheet

    I suppose you can do that. You know what your needs are.
    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)

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