Working with the web

Okay, this is a easy questions, just can't work it out.

Local intranet, they click on a link that takes them to a excel workbook, they make changes  etc etc,

I want then to click File, Save As
QUESTION!! I want them to automatically be in a default directory on the server.

Remember they open the excel in ie via a hyperlink.

Is there a way of making the default directory.

HELP
HVACAsked:
Who is Participating?
 
dij8Connect With a Mentor Commented:
You can't.  This is a security issue.  The save as dialog value is read only.  If it wasn't you could automate it quite easily.  In which csae you could start overwriting files that already exist.  Like system files!  Very bad.

The best you can do is educate your users.  And even that may not be enough for your preferences because some people like to organise their folders differently.  I know I certainly do.  I often don't install or save to the default folder.
0
 
dij8Commented:
No.  Although you should be able to add a macro and button to the spreadsheet.  Something along the lines of:
ActiveWorkbook.SaveAs Filename:= _
  "C:\My Documents\details.xls", FileFormat:=xlNormal, _
  Password:="", WriteResPassword:="", ReadOnlyRecommended:=False, _
  CreateBackup:=False

You could add paramerters to the name that would mean it would never overwrite an existing one like the date or something.
0
 
HVACAuthor Commented:
Remembering that the file would be different everytime, and that I would like them to enter the details into a database via an asp page that would make it difficult.

Would it be better if the save as dialog box appeared and they typed the name? Qiestion how can I get the save as dialog box to appear and have its path predefined.

Thanks for your comments dij8
0
Cloud Class® Course: Microsoft Azure 2017

Azure has a changed a lot since it was originally introduce by adding new services and features. Do you know everything you need to about Azure? This course will teach you about the Azure App Service, monitoring and application insights, DevOps, and Team Services.

 
COBOLdinosaurCommented:
This question has been abandoned. I will make a recommendation to the
moderators on its resolution in a week or two. I appreciate any comments
that would help me to make a recommendation.
<note>
   In the absence of responses, I will recommend DELETE unless it is clear
   to me that it has value as a PAQ.  Silence = you don't care
</note>

Cd&

0
 
COBOLdinosaurCommented:
It is time to clean this abandoned question up.  

I am putting it on a clean up list for CS.

<recommendation>
points to dij8

</recommendation>

If anyone participating in the Q disagrees with the recommendation,
please leave a comment for the mods.

Cd&
0
 
DigitalXtremeCommented:
answer force-accepted per recommendation

DigitalXtreme
CS Moderator
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.