+ Reply to Thread
Results 1 to 2 of 2

Help with Excel VBA to copy data to a template and save it as a different filename.

  1. #1
    Registered User
    Join Date
    09-17-2019
    Location
    Vancouver, BC
    MS-Off Ver
    2019
    Posts
    10

    Help with Excel VBA to copy data to a template and save it as a different filename.

    Hello everyone,

    So I have tried solving this problem, but I just cant come up with a solution. I have 2 files (see attached). Master File and a template. I need a macro that copies data from the Masterfile columns per row to the template and then save it with a new file name lets say "Template-110122". SO if the masterfile has 10 rows, that means that there will be 10 new files generated. Will really appreciate your help with this one.

    Thanks in advance.
    Attached Files Attached Files

  2. #2
    Forum Guru Norie's Avatar
    Join Date
    02-02-2005
    Location
    Stirling, Scotland
    MS-Off Ver
    Microsoft Office 365
    Posts
    19,643

    Re: Help with Excel VBA to copy data to a template and save it as a different filename.

    This should get you started.

    Note I've used the date/time including milliseconds to create unique filenames, you probably want to look at using some other method/pattern for that.
    Please Login or Register  to view this content.
    If posting code please use code tags, see here.

+ 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 4 sheets from template and dynamically name, Save template and leave workin file open
    By Webbers in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 10-29-2019, 02:39 PM
  2. [SOLVED] Excel macro-Enabled template set default save as filename
    By kersplash in forum Excel Programming / VBA / Macros
    Replies: 17
    Last Post: 05-30-2018, 08:47 PM
  3. [SOLVED] looper to copy tabs of a data file into template and save as
    By amartin575 in forum Excel Programming / VBA / Macros
    Replies: 13
    Last Post: 02-26-2014, 10:47 AM
  4. Replies: 0
    Last Post: 05-13-2013, 03:37 PM
  5. Replies: 0
    Last Post: 12-10-2012, 01:02 PM
  6. Copy and paste data from a worksheet to template, save it with a name and location.
    By sumplacenwa in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 05-28-2012, 12:47 AM
  7. [SOLVED] Date + Filename using save copy as
    By SKelley in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 04-27-2005, 05:06 PM

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