Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 4
Default SaveAs Dialogue Box

Hi, I am trying to save a file to directory. I want the saveas dialogue box
to pop up with the file name and pathe I specify, but I want the user to be
able to change the path given that it changes on a monthly basis.

With Sheets("MissingSTAvg_Corp")
.SaveAs Filename:= _
"Q:\Results\March 06\MissingSTAvg_Corp" & InputBox("Please Enter
Date As MM-DD-YY")
End With

The "March 06" will change monthly. Thanks
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default SaveAs Dialogue Box


Didn't test it but should work:

First create 2 ranges on your workbook for current_month and
current_year

Sub Test()
Dim Input_Date as Date
Dim Current_Month as String
Dim Current_Day As String

Current_Month=Range("current_month")
Current_Year=Range("current_year")

Input_Date=InputBox("Please Enter Date As MM-DD-YY")

Sheets("MissingSTAvg_Corp").SaveAs Filename:= _
"Q:\Results\" & Current_Month & " " & Current_Year &
"\MissingSTAvg_Corp" & Input_Date

End Sub

Don't forget spaces before and after the & signes.


--
renegan
------------------------------------------------------------------------
renegan's Profile: http://www.excelforum.com/member.php...o&userid=10450
View this thread: http://www.excelforum.com/showthread...hreadid=528716

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 4
Default SaveAs Dialogue Box

Thanks. I was already familiar with your suggestion. But what I really want
to do is be able to see the saveas dialog box at the suggested path and then
let the user change it from the dialog box. I think you can use:

Application.dialogs(xlDialogSaveas).show but I am not sure how to make it
open in the suggested directory with the suggested file name already in the
dialog box. Thanks again.


Didn't test it but should work:

First create 2 ranges on your workbook for current_month and
current_year

Sub Test()
Dim Input_Date as Date
Dim Current_Month as String
Dim Current_Day As String

Current_Month=Range("current_month")
Current_Year=Range("current_year")

Input_Date=InputBox("Please Enter Date As MM-DD-YY")

Sheets("MissingSTAvg_Corp").SaveAs Filename:= _
"Q:\Results\" & Current_Month & " " & Current_Year &
"\MissingSTAvg_Corp" & Input_Date

End Sub

Don't forget spaces before and after the & signes.


--
renegan
------------------------------------------------------------------------
renegan's Profile: http://www.excelforum.com/member.php...o&userid=10450
View this thread: http://www.excelforum.com/showthread...hreadid=528716


  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 56
Default SaveAs Dialogue Box

I think "FileDialog" might do what you want. Look it up in help, and see the
examples.


"Tony D" wrote:

Thanks. I was already familiar with your suggestion. But what I really want
to do is be able to see the saveas dialog box at the suggested path and then
let the user change it from the dialog box. I think you can use:

Application.dialogs(xlDialogSaveas).show but I am not sure how to make it
open in the suggested directory with the suggested file name already in the
dialog box. Thanks again.


Didn't test it but should work:

First create 2 ranges on your workbook for current_month and
current_year

Sub Test()
Dim Input_Date as Date
Dim Current_Month as String
Dim Current_Day As String

Current_Month=Range("current_month")
Current_Year=Range("current_year")

Input_Date=InputBox("Please Enter Date As MM-DD-YY")

Sheets("MissingSTAvg_Corp").SaveAs Filename:= _
"Q:\Results\" & Current_Month & " " & Current_Year &
"\MissingSTAvg_Corp" & Input_Date

End Sub

Don't forget spaces before and after the & signes.


--
renegan
------------------------------------------------------------------------
renegan's Profile: http://www.excelforum.com/member.php...o&userid=10450
View this thread: http://www.excelforum.com/showthread...hreadid=528716


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
Dialogue Box Flat disgusted Excel Discussion (Misc queries) 2 May 20th 08 06:46 PM
dialogue pop up Micayla Bergen Excel Discussion (Misc queries) 5 June 23rd 06 10:45 PM
pop up dialogue box Micayla Bergen New Users to Excel 1 June 23rd 06 02:34 AM
pop up dialogue Micayla Bergen Excel Discussion (Misc queries) 0 June 23rd 06 02:22 AM
Dialogue Box Ed Excel Programming 0 February 10th 04 06:30 PM


All times are GMT +1. The time now is 02:41 AM.

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

About Us

"It's about Microsoft Excel"