+ Reply to Thread
Results 1 to 2 of 2

Auto new folder and file from a macro enabled template

  1. #1
    Registered User
    Join Date
    05-21-2014
    Posts
    1

    Auto new folder and file from a macro enabled template

    Hello all I am attempting to create a macro that will create a new folder on the network drive Arie:\quotes that will create the new folder and save the the file in the new folder. I need the name of the file and folder to be set to the master (worksheet) cell "B3". and then if possible have it be conditional that if cell "B40" on the same master (worksheet) has a value to have the value added at the end of the filename via hyphen. This workbook has numerous worksheets in it approx 15 worksheets. I am not sure if this is relevant.
    As an brief example.
    Cell "B3" on the master(worksheet) contains a job name I-40 bridge So initially I would like the Folder name and file name to be I-40 Bridge
    However once the Cell "B40" has been filled in with the value 54213 then I would like the file to renamed to I-40 Bridge-54213 and saved within the same folder.
    I am currently working with Excel 2007 Pro edition on windows 8. I
    There are several other steps that I am trying to make macros for and I may require assistance on those also if I get stuck. Thank you in advance for any help you can offer me. I have found several other macro's that work with an auto save but i am unsure of how to change the directory to the network drive and show the correct file paths. This is the example of the macro I am currently working with.

    Please Login or Register  to view this content.
    Last edited by JBeaucaire; 05-22-2014 at 12:45 AM. Reason: Added missing CODE tags. Please read and follow the Forum Rules, link above in the menu bar. Thanks.

  2. #2
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: Auto new folder and file from a macro enabled template

    Something like this perhaps should move you in the right direction:

    Please Login or Register  to view this content.
    _________________
    Microsoft MVP 2010 - Excel
    Visit: Jerry Beaucaire's Excel Files & Macros

    If you've been given good help, use the icon below to give reputation feedback, it is appreciated.
    Always put your code between code tags. [CODE] your code here [/CODE]

    ?None of us is as good as all of us? - Ray Kroc
    ?Actually, I *am* a rocket scientist.? - JB (little ones count!)

+ 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] Why not always save a template file in the Macro-Enabled format?
    By alice2011 in forum Excel General
    Replies: 2
    Last Post: 01-17-2014, 06:15 AM
  2. VBA Copy macro-enabled worksheets to all workbooks in folder
    By Kahmed2R in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 07-30-2013, 09:59 AM
  3. Save a Macro Enabled Template to a custom location with a custom file name.
    By andcha in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 06-24-2013, 11:46 AM
  4. Custom File Name At Start-up Using Macro-Enabled Template Format (.XLTM) (VBA)
    By engineerchange in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 07-18-2012, 08:48 AM
  5. Auto run macro on File->New->Template
    By owainl in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 08-06-2008, 11:40 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