+ Reply to Thread
Results 1 to 2 of 2

Copy template worksheet from macro file to the working file

  1. #1
    Registered User
    Join Date
    10-21-2014
    Location
    Macedonia
    MS-Off Ver
    2010
    Posts
    69

    Copy template worksheet from macro file to the working file

    Hello,

    I am working on a macro that should copy a template (complex voucher) to an Excel file/report generated by a software.

    Basically the template will be located in the file "Macro.xls/xlsx". The sheet name is "Template". Once the user exports the report from the software (lets say that the exported file will be named "book1") I would like when the macro is run to copy the "Template" sheet from the file "Macro" into the file "book1" as a second sheet (or last sheet does not matter as long as it is copied there).

    I do not know if it is important but the template has defined print area which I would like to be preserved.

    I hope that I was clear. Is there an easy way to just copy the Template sheet from "Macro" to "book1" Excel files?

    Thank you so much.

    Edit: if the path to the files is important than they can both be located in one folder. Even in the root C:\ directory. This is really no problem.
    Last edited by gokica; 11-17-2014 at 09:54 AM.

  2. #2
    Registered User
    Join Date
    10-21-2014
    Location
    Macedonia
    MS-Off Ver
    2010
    Posts
    69

    Re: Copy template worksheet from macro file to the working file

    I would like to apologize for opening this thread which probably seems trivial to most of the members on this forum. I was lost in many explanations on the net and could not see the forest from the tree.

    http://support.microsoft.com/kb/288402

    Thank you so much.
    Last edited by gokica; 11-17-2014 at 11:59 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] VBA to copy data to a template file then save it as a new file.
    By Efjoker in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 12-20-2019, 12:10 PM
  2. Macro to AutoFilter create PDF/Mail and copy selected data to Template Excel file
    By iancoupal in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 06-07-2014, 05:47 PM
  3. Macro to extract a tab from one file, add it to a master template file and then save as
    By SweetSorcery in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 03-03-2014, 11:36 AM
  4. Replies: 3
    Last Post: 05-15-2013, 11:34 PM
  5. Copy Paste section of macro not working in shared file
    By nigelog in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 11-13-2008, 01:32 PM

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