Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 12
Default a problem with savaas method

I need to create an ecxel template and allow my endusers to open it from an
intranet site and save a copy of that template as an excell document that
enabels macros.

in that template I put a picture. when the user clicks the picture the
saveas screen prompts and the user can save the document to his own computer
with another name with the picture and the macros.

I have recorded the macro:


ActiveWorkbook.SaveAs Filename:= _
"C:\Documents and Settings\yosi\My Documents\123.xls",
FileFormat:=xlNormal _
, Password:="", WriteResPassword:="", ReadOnlyRecommended:=False

but, instead of saving the document like the macro shows, I want it to
prompt the "get saveas" screen and allow the user to save the document to the
library of his choice with a different name.

I hope this is clear enough... and someone can help me... because I am stuck
with this problem for over a week now....

thanks,

Iris


  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 9,101
Default a problem with savaas method

fileSaveName = Application.GetSaveAsFilename( _
fileFilter:="Excel Files (*.xls), *.xls")
If fileSaveName = False Then
MsgBox ("Cannot Save file, Exiting Sub")
Exit Sub
End If

ActiveWorkbook.SaveAs _
Filename:=fileSaveName, _
FileFormat:=xlNormal, _
Password:="", _
WriteResPassword:="", _
ReadOnlyRecommended:=False


"iris" wrote:

I need to create an ecxel template and allow my endusers to open it from an
intranet site and save a copy of that template as an excell document that
enabels macros.

in that template I put a picture. when the user clicks the picture the
saveas screen prompts and the user can save the document to his own computer
with another name with the picture and the macros.

I have recorded the macro:


ActiveWorkbook.SaveAs Filename:= _
"C:\Documents and Settings\yosi\My Documents\123.xls",
FileFormat:=xlNormal _
, Password:="", WriteResPassword:="", ReadOnlyRecommended:=False

but, instead of saving the document like the macro shows, I want it to
prompt the "get saveas" screen and allow the user to save the document to the
library of his choice with a different name.

I hope this is clear enough... and someone can help me... because I am stuck
with this problem for over a week now....

thanks,

Iris


  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 12
Default a problem with savaas method

Hi Joel!

Thank You very much for your help!!

It works like a charm!

"Joel" wrote:

fileSaveName = Application.GetSaveAsFilename( _
fileFilter:="Excel Files (*.xls), *.xls")
If fileSaveName = False Then
MsgBox ("Cannot Save file, Exiting Sub")
Exit Sub
End If

ActiveWorkbook.SaveAs _
Filename:=fileSaveName, _
FileFormat:=xlNormal, _
Password:="", _
WriteResPassword:="", _
ReadOnlyRecommended:=False


"iris" wrote:

I need to create an ecxel template and allow my endusers to open it from an
intranet site and save a copy of that template as an excell document that
enabels macros.

in that template I put a picture. when the user clicks the picture the
saveas screen prompts and the user can save the document to his own computer
with another name with the picture and the macros.

I have recorded the macro:


ActiveWorkbook.SaveAs Filename:= _
"C:\Documents and Settings\yosi\My Documents\123.xls",
FileFormat:=xlNormal _
, Password:="", WriteResPassword:="", ReadOnlyRecommended:=False

but, instead of saving the document like the macro shows, I want it to
prompt the "get saveas" screen and allow the user to save the document to the
library of his choice with a different name.

I hope this is clear enough... and someone can help me... because I am stuck
with this problem for over a week now....

thanks,

Iris


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
Problem with PrintOut Method Prasad Excel Programming 2 April 4th 07 03:10 PM
Problem with Find method JonR Excel Programming 3 March 28th 07 05:54 PM
Problem with Find method IanC Excel Programming 7 September 29th 06 04:34 PM
Problem with .navigate method [email protected] Excel Programming 0 March 20th 06 03:33 AM
Problem with find method Ralph Heidecke[_2_] Excel Programming 3 April 18th 05 08:07 PM


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