+ Reply to Thread
Results 1 to 6 of 6

VB Code to copy certain data to another workbook

  1. #1
    Valued Forum Contributor
    Join Date
    01-18-2007
    Location
    Georgia
    MS-Off Ver
    2010
    Posts
    4,434

    VB Code to copy certain data to another workbook

    Hello:

    Please refer to attached file.
    I have data as shown in Column A thru Column S
    Column A is the store name, and Row 1 is the heading.
    Based on the selection of the store by text "Yes" on column W,
    I need to copy data for stores with "YES" in another workbook at the location and name as shown in
    cell U1.


    Let me know if you have any questions.
    Thanks.

    Riz
    Attached Files Attached Files

  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,883

    Re: VB Code to copy certain data to another workbook

    Why not just filter the data in column A for the Store you want and then do a copy and paste. Fairly quick and no code required.
    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
    Valued Forum Contributor
    Join Date
    01-18-2007
    Location
    Georgia
    MS-Off Ver
    2010
    Posts
    4,434

    Re: VB Code to copy certain data to another workbook

    Hello alan:

    Yes that would work but I need the code since it will be part of other VB Code.

    Please help.

    Riz

  4. #4
    Forum Expert
    Join Date
    10-06-2008
    Location
    Canada
    MS-Off Ver
    2007 / 2013
    Posts
    5,526

    Re: VB Code to copy certain data to another workbook

    Am I wrong in thinking that you just want someone else to do your work?
    I tried to think of an excuse but I can't think of one that someone who has close to 4300 post in this site alone can't put AutoFilter code together.
    Count me out.

  5. #5
    Forum Expert
    Join Date
    05-29-2020
    Location
    NH USA
    MS-Off Ver
    365
    Posts
    2,103

    Re: VB Code to copy certain data to another workbook

    The following might work. Check it out. I used VBA Vlookup adn populated Col T with Yes/no, then used autofiler.

    Please Login or Register  to view this content.

  6. #6
    Valued Forum Contributor
    Join Date
    01-18-2007
    Location
    Georgia
    MS-Off Ver
    2010
    Posts
    4,434

    Re: VB Code to copy certain data to another workbook

    Hello maniacb:

    Thanks a lot, this is exactly i needed.
    Riz

+ 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] Copy data workbook to another workbook vba code
    By sbvaram in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 08-16-2019, 03:23 AM
  2. VBA code to copy data from current workbook to another workbook and send email
    By aman1234 in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 02-05-2015, 06:47 AM
  3. [SOLVED] VBA code to filter and copy data to new workbook
    By eunice_hor in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 07-21-2014, 03:45 AM
  4. [SOLVED] VBA code to copy data to new workbook
    By AndyFarrell79 in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 04-06-2014, 12:38 AM
  5. VBA code for copy data from closed workbook to "Data " sheet of current workbook
    By satputenandkumar0 in forum Excel Programming / VBA / Macros
    Replies: 10
    Last Post: 03-13-2014, 02:23 AM
  6. [SOLVED] Code to copy data from a closed workbook and paste in active workbook using named range.
    By paullie1912 in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 02-28-2014, 02:38 AM
  7. Replies: 5
    Last Post: 01-22-2013, 01:33 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