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

Hi All,

I have some data sheets generated that are saved as excel Web Pages. I
need to write a macro that will allow the user to use the same file
name but save to a specified location different from the original
document. I also need it to update the saved format to *.xls

Macro I have written, uses the original name (good) but saves over the
original files and not to the new location (bad).

Newer macro writer this is what I have:

ActiveWorkbook.SaveAs
ChDir "X:\Elmo\Sesame Street\Number 3\Red House"
Dim fn As Variant
fn = Application.GetSaveAsFilename( _
"Excel files,*.xls", 1, "X:\Elmo\Sesame Street\Number 3\Red
House\*.xls")
If TypeName(fn) = "Boolean" Then Exit Sub
ActiveWorkbook.Save

End Sub

Any and all help greatly appreciated!

Thanks

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 718
Default Complicated Save

Sub SaveWB()
Dim fn As Variant
ChDir "X:\Elmo\Sesame Street\Number 3\Red House"
ChDrive "X:"
fn = Application.GetSaveAsFilename( _
, _
"Excel files,*.xls", _
1, _
"X:\Elmo\Sesame Street\Number 3\Red House\*.xls")
If fn = False Then Exit Sub
ActiveWorkbook.SaveAs fn

End Sub

HTH
--
AP

"AFairRose" a écrit dans le message de
oups.com...
Hi All,

I have some data sheets generated that are saved as excel Web Pages. I
need to write a macro that will allow the user to use the same file
name but save to a specified location different from the original
document. I also need it to update the saved format to *.xls

Macro I have written, uses the original name (good) but saves over the
original files and not to the new location (bad).

Newer macro writer this is what I have:

ActiveWorkbook.SaveAs
ChDir "X:\Elmo\Sesame Street\Number 3\Red House"
Dim fn As Variant
fn = Application.GetSaveAsFilename( _
"Excel files,*.xls", 1, "X:\Elmo\Sesame Street\Number 3\Red
House\*.xls")
If TypeName(fn) = "Boolean" Then Exit Sub
ActiveWorkbook.Save

End Sub

Any and all help greatly appreciated!

Thanks



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
a little complicated Gaurav[_2_] Excel Worksheet Functions 7 March 18th 08 12:12 AM
Too Complicated For Me mehare Excel Discussion (Misc queries) 5 August 16th 06 02:57 PM
Complicated Save AFairRose Excel Programming 0 April 6th 06 10:48 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
It's getting a bit complicated Ctech[_9_] Excel Programming 2 October 4th 05 10:24 PM


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