+ Reply to Thread
Results 1 to 13 of 13

Copy and Paste Macro throughout different sheets

  1. #1
    Forum Contributor
    Join Date
    05-09-2014
    MS-Off Ver
    Excel 2017
    Posts
    300

    Copy and Paste Macro throughout different sheets

    I will need a Macro that will Copy and Paste Information from Sheet 2 to Sheet 1. I will need it to basically Copy SKU- Find SKU on Sheet 1 and copy Inventory to Sheet 1.

    I have attached a Spreadsheet as an example.

    Any help is greatly appreciated!
    Attached Files Attached Files
    Last edited by Fredbugatti; 05-15-2014 at 12:07 AM.

  2. #2
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    53,051

    Re: Can Somone help me with creating a Macro

    Please take a moment to read the forum rules and then amend your thread title to something descriptive of your problem (think google search terms?). Once you have done this please send me a PM and I will remove this request. (Also, include a link to your thread - copy from the address bar)

    To change a Title on your post, click EDIT POST then Go Advanced and change your title, if 2 days have passed ask a moderator to do it for you.
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

  3. #3
    Forum Contributor
    Join Date
    05-09-2014
    MS-Off Ver
    Excel 2017
    Posts
    300

    Re: Can Somone help me with creating a Macro

    Thanks, Sorry I am new to this Forum. I will definitely make it more descriptive


    Sent from my iPhone using Tapatalk

  4. #4
    Forum Guru :) Sixthsense :)'s Avatar
    Join Date
    01-01-2012
    Location
    India>Tamilnadu>Chennai
    MS-Off Ver
    2003 To 2010
    Posts
    12,788

    Re: Can Somone help me with creating a Macro

    Waiting for title change


    If your problem is solved, then please mark the thread as SOLVED>>Above your first post>>Thread Tools>>
    Mark your thread as Solved


    If the suggestion helps you, then Click *below to Add Reputation

  5. #5
    Forum Contributor
    Join Date
    05-09-2014
    MS-Off Ver
    Excel 2017
    Posts
    300

    Re: Can Somone help me with creating a Macro

    Column K in Sheet 2 would be the column we will need to copy and paste to column C in Sheet 1 Based on the SKU

  6. #6
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    53,051

    Re: Copy and Paste Macro throughout different sheets

    You will not receive any suggestions until you change your thread title, sorry

  7. #7
    Forum Contributor
    Join Date
    05-09-2014
    MS-Off Ver
    Excel 2017
    Posts
    300

    Re: Copy and Paste Macro throughout different sheets

    I have just changed the Thread Title. Please check and confirm if ok


    Sent from my iPhone using Tapatalk

  8. #8
    Forum Guru :) Sixthsense :)'s Avatar
    Join Date
    01-01-2012
    Location
    India>Tamilnadu>Chennai
    MS-Off Ver
    2003 To 2010
    Posts
    12,788

    Re: Copy and Paste Macro throughout different sheets

    Thanks for changing the thread title as per mod request

    A simple Vlookup will do that work for you...

    In C2 Cell of Sheet1

    =IFERROR(VLOOKUP(A2,Sheet2!A:K,11,FALSE),"-")

    Drag it down...

  9. #9
    Forum Contributor
    Join Date
    05-09-2014
    MS-Off Ver
    Excel 2017
    Posts
    300

    Re: Copy and Paste Macro throughout different sheets

    Great, How would I change the format of the numbers so it would not show the formula in C2 Cell ?

  10. #10
    Forum Guru :) Sixthsense :)'s Avatar
    Join Date
    01-01-2012
    Location
    India>Tamilnadu>Chennai
    MS-Off Ver
    2003 To 2010
    Posts
    12,788

    Re: Copy and Paste Macro throughout different sheets

    If you don't want the formula to stay in those cells then just select the range and copy paste it as values using Paste Special option.

    But keep in mind that any change in source sheet (sheet2) will get reflected immediately in sheet1 when the formula resides in those cells.

    Once you copy pasted the formula arrived result as values then there is no connectivity between those base cells.

  11. #11
    Forum Contributor
    Join Date
    05-09-2014
    MS-Off Ver
    Excel 2017
    Posts
    300

    Re: Copy and Paste Macro throughout different sheets

    Got it!
    Is there any way to create a button for this specific spreadsheet to press using the code you gave me to simplify it ?

  12. #12
    Forum Guru :) Sixthsense :)'s Avatar
    Join Date
    01-01-2012
    Location
    India>Tamilnadu>Chennai
    MS-Off Ver
    2003 To 2010
    Posts
    12,788

    Re: Copy and Paste Macro throughout different sheets

    How to install your new code
    1. Copy the Excel VBA code
    2. Select the workbook in which you want to store the Excel VBA code
    3. Press Alt+F11 to open the Visual Basic Editor
    4. Choose Insert > Module
    5. Edit > Paste the macro into the module that appeared
    6. Close the VBEditor
    7. Save your workbook (Excel 2007+ select a macro-enabled file format, like *.xlsm)

    Please Login or Register  to view this content.
    Refer the attached file for details
    Attached Files Attached Files

  13. #13
    Forum Contributor
    Join Date
    05-09-2014
    MS-Off Ver
    Excel 2017
    Posts
    300

    Re: Copy and Paste Macro throughout different sheets

    Thanks so much! I appreciate your help!!

+ 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. help with macro - creating new columns/copying/creating new worksheets from default
    By vsantoro in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 09-17-2010, 09:29 AM
  2. Replies: 1
    Last Post: 08-30-2005, 04:05 PM
  3. Tom Ogilvy or somone else, please help
    By Einar in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 08-19-2005, 08:05 AM
  4. somone please help me
    By rjsept in forum Excel General
    Replies: 5
    Last Post: 02-07-2005, 01:32 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