+ Reply to Thread
Results 1 to 6 of 6

Looper File That opens files from a list to paste values from a cell in a list

  1. #1
    Forum Contributor
    Join Date
    10-24-2012
    Location
    Chicago
    MS-Off Ver
    O365
    Posts
    311

    Looper File That opens files from a list to paste values from a cell in a list

    Hello,

    I have the following looper code. The looper looks at the list of files to open on the File List tab. It opens each file and copies specific data out stacking it onto one tab called Extract Data. This code works great. I then make a copy of the Extract Data tab and name it Quote Rate Data Updated. I do this to do some analysis and make changes to the numbers. What I am stuck on now is once I have the numbers updated and complete I need to create a new looper that opens the files listed on the File List tab and copies the numbers in columns C and D on the File List Tab of the attached file and pastes values them into cells K184 and L184, save and close. Then move down to the next file on the Files List tab until it has finished all of them. I am thinking I can use a lot of the same code I used to copy the data in. Any suggestions?

    Please Login or Register  to view this content.
    Attached Files Attached Files

  2. #2
    Forum Contributor
    Join Date
    10-24-2012
    Location
    Chicago
    MS-Off Ver
    O365
    Posts
    311

    Re: Looper File That opens files from a list to paste values from a cell in a list

    I was hoping I could use something like this where i replace the code with code to copy from C:D on the File List Tab into the file that gets opened.

    Please Login or Register  to view this content.
    Please Login or Register  to view this content.

  3. #3
    Forum Contributor
    Join Date
    10-24-2012
    Location
    Chicago
    MS-Off Ver
    O365
    Posts
    311

    Re: Looper File That opens files from a list to paste values from a cell in a list

    I tried this and get an error that says Compile error: Method or data member not found for the wksFileList.ActiveCell.Offset(, 2).Resize(1, 2).Copy
    part of the code. I think I am almost there! Thanks for everyone viewing.

    Please Login or Register  to view this content.

  4. #4
    Forum Contributor
    Join Date
    10-24-2012
    Location
    Chicago
    MS-Off Ver
    O365
    Posts
    311

    Re: Looper File That opens files from a list to paste values from a cell in a list

    Can anyone help push me past the finish? The code I have so far is below and it is breaking. This is the only piece I believe to have left. It is breaking where I have the code telling it to go back to the Quote Rate Looper file and grab the two cells in column C & D of the current workbook opened from the file list tab.

    Please Login or Register  to view this content.

  5. #5
    Valued Forum Contributor
    Join Date
    03-22-2013
    Location
    Australia,NSW, Wirrimbi
    MS-Off Ver
    Excel 2013
    Posts
    1,057

    Re: Looper File That opens files from a list to paste values from a cell in a list

    This should do it .. or at least give you something you can modify to achieve your goal..

    Please Login or Register  to view this content.

  6. #6
    Forum Contributor
    Join Date
    10-24-2012
    Location
    Chicago
    MS-Off Ver
    O365
    Posts
    311

    Re: Looper File That opens files from a list to paste values from a cell in a list

    You da man! Thanks! I made some modifications to it. The final result is shown below.

    Please Login or Register  to view this content.

+ 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. cut and paste looper that looks at columns for ranges
    By amartin575 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 03-26-2014, 05:26 PM
  2. search list of files in a folder and paste a image from activesheet and paste to files
    By khan.washik in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 12-25-2012, 01:37 PM
  3. Copy/Paste Cells from old list to new master list by matching values
    By rfsmith in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 10-19-2012, 05:32 PM
  4. Replies: 1
    Last Post: 01-31-2012, 09:07 PM
  5. [SOLVED] GetOpenFilename restrict file list to "ord*.xls" i.e., only list ord*.xls files
    By kevin_waite in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 07-31-2005, 01:05 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