Consulting

Results 1 to 5 of 5

Thread: Solved: SaveAs - Default Name

  1. #1
    VBAX Tutor Philcjr's Avatar
    Joined
    Jul 2005
    Location
    Bedminster, NJ
    Posts
    208
    Location

    Solved: SaveAs - Default Name

    All,

    In Excel 2000, how can I make it so that when a user selects "SaveAs" the file name in the SaveAsDialogbox will default to what is in cell A1

    Thanks,
    Phil

  2. #2
    Site Admin
    Urban Myth
    VBAX Guru
    Joined
    May 2004
    Location
    Oregon, United States
    Posts
    4,940
    Location
    Hey Phil,

    If using the Dialogs collection, you can just use the native syntax of it, it's the first argument ...

    [vba]Sub saveasfooey()
    Application.Dialogs(xlDialogSaveAs).Show Range("A1").Value
    End Sub[/vba]

  3. #3
    VBAX Tutor Philcjr's Avatar
    Joined
    Jul 2005
    Location
    Bedminster, NJ
    Posts
    208
    Location
    Zack,

    As usual, thanks for your help

    Phil

  4. #4
    Distinguished Lord of VBAX VBAX Grand Master Bob Phillips's Avatar
    Joined
    Apr 2005
    Posts
    25,453
    Location
    Put that in a BeforeSave event procedurtes and it will be peachy!
    ____________________________________________
    Nihil simul inventum est et perfectum

    Abusus non tollit usum

    Last night I dreamed of a small consolation enjoyed only by the blind: Nobody knows the trouble I've not seen!
    James Thurber

  5. #5
    VBAX Tutor Philcjr's Avatar
    Joined
    Jul 2005
    Location
    Bedminster, NJ
    Posts
    208
    Location
    Mr. XLD,

    Actually, I did that and it kindof worked.

    * The SaveAs dialogbox appears
    * The FileName appears
    * The file saves

    Then another SaveAs dialogbox appears again, hummmmmmm?

    Any ideas as to why?

    Thanks,
    Phil

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •