#1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 55
Default save as

After running some code, I would like to open a "Save As" box and navigate
to a specific directory. At this point I would like to wait for the user to
type a file name. Can someone help me with this part of the code?

Thank You


  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default save as


Hello Striker,

You can call up the "Save As" dialog in VBA using the code below.

Application.Dialogs(xlDialogSaveAs).Show

Sincerely,
Leith Ros

--
Leith Ros
-----------------------------------------------------------------------
Leith Ross's Profile: http://www.excelforum.com/member.php...fo&userid=1846
View this thread: http://www.excelforum.com/showthread.php?threadid=55912

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default save as


Hello Striker,

You can call up the "Save As" dialog in VBA using the code below.

Application.Dialogs(xlDialogSaveAs).Show

Sincerely,
Leith Ros

--
Leith Ros
-----------------------------------------------------------------------
Leith Ross's Profile: http://www.excelforum.com/member.php...fo&userid=1846
View this thread: http://www.excelforum.com/showthread.php?threadid=55912

  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default save as


Hello Striker,

You can call up the "Save As" dialog in VBA using the code below.

Application.Dialogs(xlDialogSaveAs).Show

Sincerely,
Leith Ros

--
Leith Ros
-----------------------------------------------------------------------
Leith Ross's Profile: http://www.excelforum.com/member.php...fo&userid=1846
View this thread: http://www.excelforum.com/showthread.php?threadid=55912

  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default save as


Hello Striker,

You can call up the "Save As" dialog in VBA using the code below.

Application.Dialogs(xlDialogSaveAs).Show

Sincerely,
Leith Ros

--
Leith Ros
-----------------------------------------------------------------------
Leith Ross's Profile: http://www.excelforum.com/member.php...fo&userid=1846
View this thread: http://www.excelforum.com/showthread.php?threadid=55912



  #6   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 5,302
Default save as

Hi Striker,

Try something like:

'=============
Public Sub Tester()
Dim myFolder As String
Dim myPath As String
Dim FName As Variant

myFolder = CurDir
myPath = "C:\Data\" '<<=== CHANGE

If Right(myPath, 1) < "\" Then
myPath = myPath & "\"
End If

ChDrive myPath
ChDir myPath

FName = Application.GetSaveAsFilename( _
FileFilter:="Excel Files (*.xls), *.xls")
If FName < False Then
ActiveWorkbook.SaveAs Filename:=FName
End If

ChDrive myFolder
ChDir myFolder

End Sub
'<<=============


---
Regards,
Norman


"Striker" wrote in message
...
After running some code, I would like to open a "Save As" box and navigate
to a specific directory. At this point I would like to wait for the user
to type a file name. Can someone help me with this part of the code?

Thank You



Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Save, save as, page setup dimmed out in unprotected excel sheet? ccKeithJ Excel Discussion (Misc queries) 3 December 14th 07 07:07 PM
Save As and save current numbers not the actual formulas and links Frank Menard Excel Discussion (Misc queries) 2 November 9th 06 09:18 PM
How to diasble save and save as menu but allow a save button hon123456 Excel Programming 1 June 12th 06 09:50 AM
how to get disk icon on save button of save as dialog like 2000 RichT Excel Discussion (Misc queries) 2 March 9th 06 08:13 PM
Totally Disabling (^ save ) (Save as) and Save Icon – Which code do I use: harpscardiff[_10_] Excel Programming 8 November 10th 05 12:24 PM


All times are GMT +1. The time now is 04:11 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"