+ Reply to Thread
Results 1 to 5 of 5

Help modifying code to copy data from one sheet to another

  1. #1
    Registered User
    Join Date
    03-18-2015
    Location
    Detroit
    MS-Off Ver
    2013
    Posts
    78

    Question Help modifying code to copy data from one sheet to another

    I have a bit of code that works perfect for copying data from certain columns and rows from one sheet to another in order to create a packing slip.

    I need to modify the code a bit to use it on another sheet to copy it's data to a "material req" sheet (different columns)


    Here is the code that works great (it works even if data is filtered, works perfect)

    Please Login or Register  to view this content.


    This basically takes all data from the first three columns (starting at row 8) and copies it to another sheet (packing slip).


    What I need is it to be used on another sheet (sheet2 "material list") and have it copy the data from the first three columns (a,b,c) and also from column g (skipping d,e,f).
    This would also start at row 8 and work exactly like the other bit of code and it would copy it to sheet14 "material req".

    Other than that it would work the same way.

    I just can't figure out how to get the range of what it is copying to switch from a,b,c to a,b,c,g.


    Thanks

  2. #2
    Forum Moderator alansidman's Avatar
    Join Date
    02-02-2010
    Location
    Steamboat Springs, CO
    MS-Off Ver
    MS Office 365 Version 2405 Win 11 Home 64 Bit
    Posts
    23,879

    Re: Help modifying code to copy data from one sheet to another

    try this "untested" modification


    Please Login or Register  to view this content.
    Alan עַם יִשְׂרָאֵל חַי


    Change an Ugly Report with Power Query
    Database Normalization
    Complete Guide to Power Query
    Man's Mind Stretched to New Dimensions Never Returns to Its Original Form

  3. #3
    Registered User
    Join Date
    03-18-2015
    Location
    Detroit
    MS-Off Ver
    2013
    Posts
    78

    Re: Help modifying code to copy data from one sheet to another

    Hi, thanks for the help.

    It gives me a 400 error and does not copy anything.

    The only thing I did see is that it just unlocked the material req sheet that's it.

    This should start copying the data at row 8, like the other one does. I didn't notice that starting point in your piece of code, but I am not advanced enough to tell 100%. Everything above row 8 is headers and title stuff.


    Thanks.

  4. #4
    Forum Moderator alansidman's Avatar
    Join Date
    02-02-2010
    Location
    Steamboat Springs, CO
    MS-Off Ver
    MS Office 365 Version 2405 Win 11 Home 64 Bit
    Posts
    23,879

    Re: Help modifying code to copy data from one sheet to another

    See if this works any better for you

    Please Login or Register  to view this content.

  5. #5
    Registered User
    Join Date
    03-18-2015
    Location
    Detroit
    MS-Off Ver
    2013
    Posts
    78

    Re: Help modifying code to copy data from one sheet to another

    Worked perfect, sorry for the delayed response.

    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. [SOLVED] Writing Slicer Items to Sheet- Modifying Existing Code
    By liquidmettle in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 01-14-2016, 11:15 AM
  2. Help modifying code to transfer data to continuation sheet please.
    By ElmerFud in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 08-14-2015, 08:04 AM
  3. Modifying VBA copy and paste code to search down rather than across
    By Stopwatch in forum Excel Programming / VBA / Macros
    Replies: 18
    Last Post: 07-07-2015, 11:45 AM
  4. Require help in modifying the code to copy data to an existing file instead of new file
    By ahamedcader in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 11-13-2014, 02:57 PM
  5. [SOLVED] Help with modifying code to copy specific cells on target row instead of the whole row
    By Spookman in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 05-28-2012, 05:22 AM
  6. Help modifying code to check for text in a range prior to email sheet.
    By dcgrove in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 07-09-2009, 06:16 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