+ Reply to Thread
Results 1 to 1 of 1

VBA: Loop to copy and paste data from another spreadsheet

  1. #1
    Registered User
    Join Date
    09-24-2022
    Location
    United Kingdom
    MS-Off Ver
    2016
    Posts
    1

    VBA: Loop to copy and paste data from another spreadsheet

    Hi Everyone hoping that you can help me with the following query.

    I have managed to use the following code to open another spreadsheet, that pulls data in from our database based on the parameters in cells C2:C5, and then copy the results into my current spreadsheet and then save the file as the product code, (for now just my desktop). Our product code is in cell C2, C3:C5 will remain fixed. What I am hoping for is to use a loop to, repeat this process for a list of product codes in column P and save the file as the name of the product code. Is this possible and if so could anyone point me in the right direction?
    Please Login or Register  to view this content.
    Test.xlsm
    Last edited by davesexcel; 09-24-2022 at 08:45 AM.

+ 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] Loop through files, copy a specific range and paste to a different spreadsheet.
    By saziz in forum Excel Programming / VBA / Macros
    Replies: 29
    Last Post: 07-29-2022, 05:32 PM
  2. Loop to copy paste pivot table data changing the filter every time and copy it
    By PaulM100 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 08-22-2019, 06:58 AM
  3. VBA to Copy Data and Paste On a Loop
    By Jess709 in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 01-12-2018, 01:32 PM
  4. [SOLVED] Macro to loop through filtered data and copy to new spreadsheet
    By Sun13Banjo in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 08-18-2016, 04:23 AM
  5. Data copy paste loop
    By rizabdullah in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 05-20-2016, 12:02 PM
  6. [SOLVED] Copy dynamically changing column and Paste using VBA Loop (Loop within Loop)
    By nixon72 in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 02-12-2013, 12:46 PM
  7. Copy and paste data in a loop
    By rhudgins in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 03-31-2010, 05:05 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