Microsoft Office Forums

Go Back   Microsoft Office Forums > >

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #2  
Old 01-07-2023, 08:20 PM
BrianHoard BrianHoard is offline Can't save file using a msoFileDialogSaveAs Windows 10 Can't save file using a msoFileDialogSaveAs Office 2019
Advanced Beginner
 
Join Date: Jul 2022
Location: Haymarket, VA USA
Posts: 85
BrianHoard is on a distinguished road
Default

Does this help?
Code:
Sub ShowSaveAsDialog()
  Dim dlgSaveAs As FileDialog
  Set dlgSaveAs = Application.FileDialog(msoFileDialogSaveAs)
  dlgSaveAs.InitialFileName = "test.docx"
  
  If dlgSaveAs.Show <> 0 Then
    dlgSaveAs.Execute
  End If
  
End Sub
Reply With Quote
 

Tags
dialog, msofiledialogsavea, save as



Similar Threads
Thread Thread Starter Forum Replies Last Post
Can't save file using a msoFileDialogSaveAs Excel 2000 Backup File Modification Date Not Changing When I Save an XLS File skeezix Excel 3 01-10-2021 04:51 PM
Can't save file using a msoFileDialogSaveAs save dialog box promt doesn't save file brmveen Word VBA 2 11-04-2015 12:51 AM
Can't save file using a msoFileDialogSaveAs Auto Save Every Page(s) as a separate file, and name each new file automatically by the first line? commissarmo Word VBA 3 03-14-2015 12:53 AM
Can't save file using a msoFileDialogSaveAs error: You are attempting to save a file format that is blocked by file block setting zatlas1 Office 8 04-28-2012 02:37 PM
Can't save file using a msoFileDialogSaveAs Word Macro: Save file as text with current file name jabberwocky12 Word VBA 2 10-22-2010 12:23 PM

Other Forums: Access Forums

All times are GMT -7. The time now is 04:17 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