Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Where would you like to save - Name?

I have this code:-

Name = InputBox("What would you like to save the as?")
ActiveWorkbook.SaveAs (Name)


When I run this, it will save the file in the current workin
directory.

I want a promt to come up asking where it would like to be saved, bu
in doing this it is like the windoes explorer that you get when yo
manual click File Save As, so you can choose which directoy you woul
like, any idea's

--
Message posted from http://www.ExcelForum.com

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3
Default Where would you like to save - Name?

Hi
Use Application.Dialogs, this will allow both operations:
MyName = Application.Dialogs(xlDialogSaveAs).Show
If MyName = False Then MsgBox "You cancelled the Save operation",
vbInformation, "Cancelled"

Regards
Pascal

"ianripping " a écrit dans le
message de ...
I have this code:-

Name = InputBox("What would you like to save the as?")
ActiveWorkbook.SaveAs (Name)


When I run this, it will save the file in the current working
directory.

I want a promt to come up asking where it would like to be saved, but
in doing this it is like the windoes explorer that you get when you
manual click File Save As, so you can choose which directoy you would
like, any idea's?


---
Message posted from http://www.ExcelForum.com/



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
Command Button Save As Application.ExecuteExcel4Macro ("SAVE.AS?() Paul Dennis Excel Discussion (Misc queries) 5 September 18th 06 05:34 PM
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
Why system asks me to save change even after I call save method(VB.NET) steellock Excel Programming 2 April 27th 04 04:14 AM


All times are GMT +1. The time now is 05:58 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"