+ Reply to Thread
Results 1 to 3 of 3

Clear Table, Copy based on criteria and paste into other workbook

  1. #1
    Registered User
    Join Date
    03-12-2022
    Location
    Atlanta, Georgia
    MS-Off Ver
    365
    Posts
    94

    Clear Table, Copy based on criteria and paste into other workbook

    Hello!

    I have a sourcedata wb (SourceData FY24) and a destination wb (Destination FY24). Within Destination FY24, there is a name range ("B3" currently listed as Jamie Flamingo) which lists criteria to filter. I am wanting to:

    1. Open both SourceData FY24 and Destination FY24 wbs.
    2. Unprotect Mission Control ws of Destination FY24 wb. Code is "1234"
    2. Change calculation to manual for Destination FY24 wb.
    3. Clear data from cells "AF2 to BW10" in Mission Control ws of Destination FY24 wb. Code must be dynamic since table size can change.
    4. Copy only rows from SourceData FY24 that matches value in "B3" of Destination FY24.
    5. Paste copied data into Destination FY24 starting in cell "AF2".
    6. Change calculation back to automatic for Destination FY24 wb.
    2. Protect Mission Control ws of Destination FY24 wb.
    7. Save Destination FY24 wb.
    8. Close both wbs

    My current code does not work fully and need feedback:

    Please Login or Register  to view this content.
    Attached Files Attached Files
    Last edited by KerahJoy; 09-29-2023 at 08:50 AM.

  2. #2
    Forum Expert
    Join Date
    11-24-2013
    Location
    Paris, France
    MS-Off Ver
    Excel 2003 / 2010
    Posts
    9,831

    Question Re: Clear Table, Copy based on criteria and paste into other workbook


    Hello,

    why within your code the files type does not match your attachment ?!

  3. #3
    Registered User
    Join Date
    03-12-2022
    Location
    Atlanta, Georgia
    MS-Off Ver
    365
    Posts
    94

    Re: Clear Table, Copy based on criteria and paste into other workbook

    I made the corrections....thanks for recognizing that Marc.

+ 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. Replies: 2
    Last Post: 01-26-2023, 05:56 PM
  2. Replies: 4
    Last Post: 03-12-2021, 02:21 PM
  3. [SOLVED] Compile code for clear cells, open a workbook with WindowsExplorer, copy&paste, close it
    By Gr33nMM in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 01-29-2021, 03:29 PM
  4. Copy and paste based on criteria in another workbook
    By phbragan in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 07-16-2017, 11:59 PM
  5. Copy and Paste Data from one Sheet to Other on different workbook based on Criteria
    By skonduru in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 03-31-2016, 03:25 PM
  6. Copy paste last row from each workbook in master workbook on header criteria
    By farrukh in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 10-30-2013, 07:28 AM
  7. Replies: 0
    Last Post: 10-29-2013, 09:38 AM

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