Results 1 to 5 of 5

Filter, Copy & Paste Data to Another Workbook

Threaded View

ell_ Filter, Copy & Paste Data to... 10-05-2020, 11:48 PM
jindon Re: Filter, Copy & Paste Data... 10-06-2020, 01:11 AM
ell_ Re: Filter, Copy & Paste Data... 10-06-2020, 09:21 PM
jindon Re: Filter, Copy & Paste Data... 10-06-2020, 09:47 PM
ell_ Re: Filter, Copy & Paste Data... 10-07-2020, 03:50 AM
  1. #1
    Forum Contributor
    Join Date
    09-19-2017
    Location
    London
    MS-Off Ver
    2015
    Posts
    169

    Question Filter, Copy & Paste Data to Another Workbook

    Hi, all

    Hope you're safe and sound.

    I have these 2 workbooks that I need to deal with a little bit of VBA.

    I have started the code with:

    Sub openRawOutputFile()
    
    Dim myFileName As Variant
    
    myFileName = Application.GetOpenFilename(FileFilter:="Excel Files,*.xlsx*;*.xlsm*")
    
    If myFileName <> False Then
        Workbooks.Open (myFileName)
    End If
    
    'ActiveWorkbook.Worksheets("result_arc").Activate
    
    ' Select cell A2, *first line of data*.
          ThisWorkbook.Sheets("Variables").Range("A2").Select
    ' Set Do loop to stop when an empty cell is reached.
          Do Until IsEmpty(ActiveCell)
             ' Step down 1 row from present location.
             ActiveCell.Offset(1, 0).Select
          Loop
     
    
    End Sub
    But I'm stuck with creating a loop code.

    The intended workflow is as below:
    1. Start
    2. Run the code from "Scheduler" file (as attached).
    3. Let user select the Raw Output file (the filename could be anything).
    4. Program opens result_arc sheet.
    5. If "Parameter" in result_arc sheet of the Raw Output file is the same as any "Parameter" listed in "Variables" sheet in "Scheduler" file, the "Shop" and "Nomenclature" from "Variables" sheet will be copied following the "Parameter", together with the "Value" and "Date", and to be pasted to "Consignes" sheet in "Scheduler" workbook. This will loop until there's no more "Parameter" listed in "Variables" sheet.
    5. End task

    Any help would be really appreciated. Thank you in advance and stay safe!
    Attached Files Attached Files

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Filter, copy and paste to new workbook
    By lonleysoul in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 05-29-2014, 11:57 AM
  2. [SOLVED] Copy Filter Data and paste it on another workbook with special cells(Only Visible Cells)
    By HaroonSid in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 04-13-2014, 07:59 AM
  3. Filter Greater then 0 and copy paste on another workbook
    By HaroonSid in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 04-11-2014, 12:26 PM
  4. Excel VBA filter to criteria and copy data and paste to another workbook
    By aalvaro03 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 11-19-2013, 07:33 PM
  5. [SOLVED] filter, copy and paste from one sheet to another within a workbook
    By CharlieZangel in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 03-27-2013, 01:24 PM
  6. Open workbook, filter values, copy/paste into Active workbook.
    By niceguy21 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 01-10-2013, 12:17 PM
  7. filter copy and paste to different workbook
    By Karen311261 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 05-23-2011, 03:56 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