+ Reply to Thread
Results 1 to 4 of 4

Save As macro

  1. #1
    Registered User
    Join Date
    03-30-2004
    Posts
    31

    Save As macro

    Here is the macro I recorded for SaveAs in a workbook:

    Application.CutCopyMode = False
    ChDir "C:\Documents and Settings\XXXX\Desktop"
    ActiveWorkbook.saveas Filename:= _
    "C:\Documents and Settings\XXXX\Desktop\Joe Smith (ABCD) NM dp 6.7.05.xls", _
    FileFormat:=xlNormal, Password:="", WriteResPassword:="", _
    ReadOnlyRecommended:=False, CreateBackup:=False
    In my workbook:

    Joe Smith ABCD = A4
    NM = G5

    dp and 6.7.05 are not already in the workbook, but need to be in the file name. Is there a way to alter the code above to (1)retrieve the information already present in the workbook and (2) via macro, request the other information?

    The point is to click a button and have the file saved as Joe Smith (ABCD) NM dp 6.7.05.xls

  2. #2
    Forum Contributor
    Join Date
    11-16-2004
    Posts
    282
    Hi Dave!

    This looks similar to another post of yours that I replied to:

    http://www.excelforum.com/showthread...999#post990999

    You never responded to see if it worked out...

    Let me know,
    theDude

  3. #3
    Registered User
    Join Date
    03-30-2004
    Posts
    31
    Nice - thank you very, very much. I'll hook it up and let you know.

  4. #4
    Registered User
    Join Date
    03-30-2004
    Posts
    31
    Worked great. 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