+ Reply to Thread
Results 1 to 6 of 6

Save As Problem

Hybrid View

Dean81 Save As Problem 12-20-2011, 10:19 AM
mohd9876 Re: Save As Problem 12-20-2011, 10:40 AM
Dean81 Re: Save As Problem 12-21-2011, 05:30 AM
mohd9876 Re: Save As Problem 12-21-2011, 05:37 AM
JBeaucaire Re: Save As Problem 12-21-2011, 05:44 AM
Dean81 Re: Save As Problem 12-21-2011, 06:27 AM
  1. #1
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: Save As Problem

    Dean,

    First, be sure to go back to your post #1 above and add CODE tags around your posted code, as per forum rules. We don't want your thread to get moderated, ok? Like mohd showed in their post above, and demonstrated in my signature below.

    Once you have a "method" that seems to be getting you close, try a forum/Google search on the main keywords to see what other "parameters" might be available, or to just view other examples of the method. IN this case, the keyword search would be for FileDialog(msoFileDialogSaveAs)...

    This is one of the additional parameters you can add:
    Dim FileSaveDLG As FileDialog
    Set FileSaveDLG = Application.FileDialog(msoFileDialogSaveAs)
    With FileSaveDLG
        .InitialFileName = "W:\Planning\"
        If .Show = -1 Then
            ActiveWorkbook.SaveAs .SelectedItems(1)
        End If
    End With

    You could even go further and have it fill in a suggested filename:
              .InitialFileName = "W:\Planning\" & "MyFile-" & Format(Date, "mm-dd-yy")
    Last edited by JBeaucaire; 12-21-2011 at 05:46 AM.
    _________________
    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)

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