+ Reply to Thread
Results 1 to 3 of 3

Code:Save as macro

  1. #1
    Registered User
    Join Date
    04-25-2009
    Location
    Manchester,England
    MS-Off Ver
    Excel 2003
    Posts
    17

    Code:Save as macro

    Hi all

    I found this macro to save a workbook with a filename already placed in the save as dialog box.it nearly does what i want but im pretty new to all this and i cant get it to do the following.

    what id like to do is

    1,place cell values A1 and b1 from the workbook into the save as filename instead of filename. but keep in the date
    2,create a new folder in c:\temp with the cell value of b1

    any help would be great.

    Please Login or Register  to view this content.
    thanks
    Last edited by Leith Ross; 09-28-2009 at 12:24 AM. Reason: Reset font size to normal

  2. #2
    Forum Moderator Leith Ross's Avatar
    Join Date
    01-15-2005
    Location
    San Francisco, Ca
    MS-Off Ver
    2000, 2003, & 2010
    Posts
    23,258

    re: Code:Save as macro

    Hello spanker,

    Assuming you have validated the data in cells "A1" and "B1" and "A1" contains the path and "B1" contains the file name then this macro will add the date to the new file and save it.
    Please Login or Register  to view this content.
    Sincerely,
    Leith Ross

    Remember To Do the Following....

    1. Use code tags. Place [CODE] before the first line of code and [/CODE] after the last line of code.
    2. Thank those who have helped you by clicking the Star below the post.
    3. Please mark your post [SOLVED] if it has been answered satisfactorily.


    Old Scottish Proverb...
    Luathaid gu deanamh maille! (Rushing causes delays!)

  3. #3
    Registered User
    Join Date
    04-25-2009
    Location
    Manchester,England
    MS-Off Ver
    Excel 2003
    Posts
    17

    re: Code:Save as macro

    thanks for the reply leith

    is it possible to change the default save path and to create a new folder if it doesnt already exist with the value in cell b1.

    i cant see in the code how it gets the current save path

    thanks

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

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