+ Reply to Thread
Results 1 to 4 of 4

File Naming Convention Macro

  1. #1
    Forum Contributor
    Join Date
    04-30-2013
    Location
    arizona
    MS-Off Ver
    365
    Posts
    147

    File Naming Convention Macro

    My code below creates a new workbook for every cell in Column A starting with A3 and stops when their is no more data. It then copies the data in each cell in column A to cell A4 on the "Input" sheet. So for example, if I had data in A3 and A4 only then I would have 2 workbooks saved each being named after the data that is in cells A3 and A4.

    So that code is working right, but what I am trying to do is to add another layer to my workbook file naming convention. Now in addition to naming the file after the data found in each cell Column in A I want it to name the file after the data in column B too. So for example if A3= John and B3=Smith and A4=Peter and B4=Parker then I would end up with two workbooks which are named "JohnSmith.xlsm" and "PeterParker.xlsm"

    Does any one know how to do this?
    Thanks

    Please Login or Register  to view this content.
    Last edited by glide2131; 05-01-2014 at 01:07 PM.

  2. #2
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,621

    Re: File Naming Convention Macro

    Please Login or Register  to view this content.

    Regards, TMS
    Trevor Shuttleworth - Retired Excel/VBA Consultant

    I dream of a better world where chickens can cross the road without having their motives questioned

    'Being unapologetic means never having to say you're sorry' John Cooper Clarke


  3. #3
    Forum Contributor
    Join Date
    04-30-2013
    Location
    arizona
    MS-Off Ver
    365
    Posts
    147

    Re: File Naming Convention Macro

    That worked wonderfully. Thank you much.

  4. #4
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,621

    Re: File Naming Convention Macro

    You're welcome.



    If you are satisfied with the solution(s) provided, please mark your thread as Solved.


    New quick method:
    Select Thread Tools-> Mark thread as Solved. To undo, select Thread Tools-> Mark thread as Unsolved.

    Or you can use this way:

    How to mark a thread Solved
    Go to the first post
    Click edit
    Click Go Advanced
    Just below the word Title you will see a dropdown with the word No prefix.
    Change to Solved
    Click Save


    You may also want to consider thanking those people who helped you by clicking on the little star at the bottom left of their reply to your question.

+ 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 save xls to pdf with path & naming convention
    By graiggoriz in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 04-01-2014, 11:24 AM
  2. [SOLVED] How do I automatically fill in naming convention from one cell?
    By zilla1126 in forum Excel General
    Replies: 6
    Last Post: 10-23-2012, 09:30 AM
  3. [SOLVED] Button to list acceptable naming convention when saving a file
    By concatch in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 07-03-2012, 03:17 AM
  4. Add certain naming convention
    By superbob in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 05-12-2010, 05:26 AM
  5. Variable Naming Convention
    By Ben in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 04-08-2006, 03:50 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