Microsoft Office Forums

Go Back   Microsoft Office Forums > >

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #2  
Old 10-02-2014, 12:04 AM
macropod's Avatar
macropod macropod is offline Saves as dialog in Excel Windows 7 64bit Saves as dialog in Excel Office 2010 32bit
Administrator
 
Join Date: Dec 2010
Location: Canberra, Australia
Posts: 22,465
macropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond repute
Default

InitialFileName Property applies to a file dialog box, not to a Save As dialog box.
Try something along the lines of:
Code:
Dim StrFold As String
If ActiveWorkbook.Path = "" Then
  StrFold = Application.DefaultFilePath
Else
  StrFold = ActiveWorkbook.Path
End If
ChDir "N:\BES-DATA\traffman\traffic\"
With Application.Dialogs(xlDialogSaveAs)
  If Not .Show = -1 Then
    MsgBox "User cancelled without saving."
  End If
End With
ChDir StrFold
PS: When posting code, please use the code tags. They're on the 'Go Advanced' tab at the bottom of this screen.
__________________
Cheers,
Paul Edstein
[Fmr MS MVP - Word]
Reply With Quote
 



Similar Threads
Thread Thread Starter Forum Replies Last Post
Power Point saves in GREYSCALE! Bluebirdie PowerPoint 2 03-14-2012 11:17 AM
Format Autoshape Dialog Box Crashes Excel BjornP Excel 0 03-01-2012 01:58 PM
OFFICE(Word,Excel..)-crash/close when DIALOG BOX launched of insert image,open file buggingme Office 1 05-30-2010 12:18 AM
Outlook Form that Saves Data to Excel dcbrown Outlook 0 12-29-2008 06:25 PM
Saves as dialog in Excel Method to update saves to all copies aultduell Word 1 11-24-2006 12:50 PM

Other Forums: Access Forums

All times are GMT -7. The time now is 06:23 PM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2025, vBulletin Solutions Inc.
Search Engine Optimisation provided by DragonByte SEO (Lite) - vBulletin Mods & Addons Copyright © 2025 DragonByte Technologies Ltd.
MSOfficeForums.com is not affiliated with Microsoft