+ Reply to Thread
Results 1 to 4 of 4

Create Copy of workbook using macro and Name them as per list

  1. #1
    Registered User
    Join Date
    09-22-2014
    Location
    India
    MS-Off Ver
    2003
    Posts
    7

    Unhappy Create Copy of workbook using macro and Name them as per list

    Hi,

    I am wondring if it is poossible to use a macro to create a copy of workbook while we use a list to name the new created book.

    Example: Column A of "sheet1" of workbook "Masterfile.xlsm" contains unique numbers that I want to use for naming new workbooks.(0123,0456,0789,).
    Workbook I want to use create copy is "user.template.xlsm" on a path say "C:\Documents and Settings\Desktop\Database" and should be named as 0123,0456,0789 etc.

    How the code should look like?? I have codes that copy sheet data but I just want to make a complete new workbook. This will save me creating 900 copies every 1st of the month..

  2. #2
    Valued Forum Contributor Naveed Raza's Avatar
    Join Date
    11-04-2012
    Location
    India, Hyderabad
    MS-Off Ver
    Excel, Access 2007/2010
    Posts
    1,338

    Re: Create Copy of workbook using macro and Name them as per list

    Could you please provide sample workbook
    Thanks - Naveed
    -----------------------------
    If the suggestion helps you, then Click * to Add Reputation
    To Attach File: Go Advanced>>Manage Attachments>>Add Files (In Top Right Corner)>>SelectFiles>>.........Locate Your File(s)>>Upload Files>>Done (In Bottom Right)
    1. Use [code] code tags [\code]. It keeps posts clean, easy-to-read, and maintains VBA formatting.
    2. If you are happy with a solution to your problem, mark the thread as [SOLVED] using the tools at the top.

  3. #3
    Forum Expert
    Join Date
    06-12-2012
    Location
    Ridgefield Park, New Jersey
    MS-Off Ver
    Excel 2003,2007,2010
    Posts
    10,241

    Re: Create Copy of workbook using macro and Name them as per list

    Maybe:

    Please Login or Register  to view this content.

  4. #4
    Registered User
    Join Date
    09-22-2014
    Location
    India
    MS-Off Ver
    2003
    Posts
    7

    Re: Create Copy of workbook using macro and Name them as per list

    Hi John,

    This works great for me. Thanks. I just have another issue.. I have 2 columns in Workbooks("Masterfile.xls").Sheets("Sheet1")
    "A:A" has names that is used to name new files and column B:B has a value against each name that should populate in that new file at time of ccreation in cell say "B5".
    Also the sheet name should be same as file name in the new file . How can I reach 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] Macro to Upload SharePoint project List to Excel then copy to Existing Workbook
    By dawilburn67 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 07-11-2014, 12:45 PM
  2. Excel macro to create new workbook based on category in list with respective sheets
    By vadivel77 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 06-10-2014, 10:42 PM
  3. Macro to Create Worksheet 'xxxx' and list All Worksheets in Workbook
    By R_S_6 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 02-02-2009, 08:58 AM
  4. Macro to Create a set of folders and copy the active workbook
    By dcgrove in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 01-02-2009, 07:12 PM
  5. [SOLVED] Macro to copy filtered list to new workbook.
    By cribology - ExcelForums.com in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 08-03-2005, 06: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