+ Reply to Thread
Results 1 to 5 of 5

copy rows between sheets based on a cell value

  1. #1
    Registered User
    Join Date
    05-09-2015
    Location
    Maryland, USA
    MS-Off Ver
    2010
    Posts
    7

    copy rows between sheets based on a cell value

    Hello,
    Here is what I am trying to do:
    I have a master parts list (workbook a) that has all available parts.
    I want to select (using an x as a value in column A of the worksheet) what parts I need (from the master parts workbook).
    I then want to copy the selected items (from the master parts workbook (workbook a)) to a project specific workbook/sheet but only columns (B-K) from (workbook a).
    The tricky part is that in the project sheet...columns L,M,N cannot be overwritten.
    This is clearly a "pull" from the master parts list and would be code in the "project" sheet reffering the to the "master" sheet.

    Would this be persistent...since the master parts list is used by multiple users.

    I'm new to this VBA thing but find it intriguing....I've done a lot of scripting (solaris/Unix)...this windows stuff is new but I get the logic!

    Any help would be greatly appreciated!

  2. #2
    Forum Expert
    Join Date
    08-28-2014
    Location
    Texas, USA
    MS-Off Ver
    2016
    Posts
    1,796

    Re: copy rows between sheets based on a cell value

    Since L,M,N cannot be over written, where is B-K being copied to? Are B-K blank in the project sheet, and it gets copied into the first empty B-K?

    How does the code know the name on the project specific workbook?

    What you're asking doesn't sound difficult, but providing an example before/after of what you are trying to do would help.

  3. #3
    Registered User
    Join Date
    05-09-2015
    Location
    Maryland, USA
    MS-Off Ver
    2010
    Posts
    7

    Re: copy rows between sheets based on a cell value

    I am trying to copy from a master template (list) of parts. Columns B-K will be populated into a new worksheet.
    The new worksheet columns are empty at the start and would be populated based on the next empty section (B-K).
    Could I copy from the Master List (Code being called from the new project). That master list name would not change.

    Read column A from the master list.
    If that value = "X" then copy column B-K to the next empty line (B-K) in the project sheet
    The new project sheet also has data/formula's in column L,M,N.

    Thanks

  4. #4
    Forum Expert
    Join Date
    08-28-2014
    Location
    Texas, USA
    MS-Off Ver
    2016
    Posts
    1,796

    Re: copy rows between sheets based on a cell value

    You'll have to adjust wb1, ws1, and ws2 names to suit your needs.

    Please Login or Register  to view this content.

  5. #5
    Registered User
    Join Date
    05-09-2015
    Location
    Maryland, USA
    MS-Off Ver
    2010
    Posts
    7

    Re: copy rows between sheets based on a cell value

    I will play with this today....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] To copy rows from one sheet to other sheets based on the first part of the named cell
    By JamesJohnson31 in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 09-30-2014, 12:38 AM
  2. Replies: 2
    Last Post: 11-05-2012, 09:28 AM
  3. Replies: 2
    Last Post: 07-13-2012, 08:12 PM
  4. Copy rows from one sheet to different sheets based on cell value
    By Ireland316 in forum Hello..Introduce yourself
    Replies: 2
    Last Post: 04-26-2012, 06:17 AM
  5. [SOLVED] Copy rows from all sheets based on cell value
    By Steph in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 02-18-2005, 10:06 AM

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