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


Hi

I want to create a macro that Saves the workbook with the value of
cell.. However I want the user to be able to choose the destination
but not the filename.

How can I do this?

And it would also be great to set a defult save folder for the user.
i.e. When the user saves the document through my macro, it then save
the chosen destination folder, and stores this for next time the macr
runs...
So next time he wants to save, it automatically chooses this folder..

--
Ctec

-----------------------------------------------------------------------
Ctech's Profile: http://www.excelforum.com/member.php...fo&userid=2774
View this thread: http://www.excelforum.com/showthread.php?threadid=52955

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 6,953
Default save Workbook

thisworkbook.Path

gives you the path of the workbook.


This page at John Walkenbach's site shows how to display the folder
selection dialog:
http://www.j-walk.com/ss/excel/tips/tip29.htm
this uses the API. there are scripting solutions as well and in xl2002/3
you can use the FileDialog object.

Chdir will change the current directory.

ThisWorkbook.SaveAs allows you to save the workbook where you specify.

--
Regards,
Tom Ogilvy



"Ctech" wrote:


Hi

I want to create a macro that Saves the workbook with the value of a
cell.. However I want the user to be able to choose the destination,
but not the filename.

How can I do this?

And it would also be great to set a defult save folder for the user.
i.e. When the user saves the document through my macro, it then saves
the chosen destination folder, and stores this for next time the macro
runs...
So next time he wants to save, it automatically chooses this folder...


--
Ctech


------------------------------------------------------------------------
Ctech's Profile: http://www.excelforum.com/member.php...o&userid=27745
View this thread: http://www.excelforum.com/showthread...hreadid=529556


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
Shared workbook - to save or not to save bluebird Excel Discussion (Misc queries) 1 November 14th 06 06:17 PM
Select sheet tabs in workbook & save to separate workbook files stratocaster Excel Worksheet Functions 2 March 1st 06 03:35 PM
Using interop.excel to open a workbook, the workbook doesn't ask to save changes. [email protected] Excel Programming 1 December 28th 05 10:23 PM
Help on Workbook close and workbook save events Adam Harding Excel Programming 1 September 29th 05 04:12 PM
What commands do you use to name a workbook, save a workbook,open a workbook Steven R. Berke Excel Programming 1 July 24th 03 11:37 PM


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