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

I am creating a company survey and want to email the Excel document to all
employees. They will need to save it to a common file on our network and
also I want to keep it confidential. I was thinking of creating a macro that
was a "save as" and assigning it to a button - first of all will that work?
Second - can I create a "save as" that adds the date and exact time to the
document so that each form that is completed is saved seperately? (PS: to say
that I am a novice might be an compliment)

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,123
Default Multi-user file save

Hi DeAnna

Look in the VBA help for SaveCopyAs

ActiveWorkbook.SaveCopyAs "C:\Copy of " & ActiveWorkbook.Name & " " & Format(Now, "dd-mmm-yy h-mm-ss") & ".xls"


--

Regards Ron de Bruin
http://www.rondebruin.nl/tips.htm


"DeAnna" wrote in message ...
I am creating a company survey and want to email the Excel document to all
employees. They will need to save it to a common file on our network and
also I want to keep it confidential. I was thinking of creating a macro that
was a "save as" and assigning it to a button - first of all will that work?
Second - can I create a "save as" that adds the date and exact time to the
document so that each form that is completed is saved seperately? (PS: to say
that I am a novice might be an compliment)

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 4,391
Default Multi-user file save

Ron has shown you the necessary SaveAs code.
If you create a suitable network folder that everyone has write permission,
but not read permission, you can hard code that UNC path into the SaveAs.
That way everyone will save to the same place, but will not be able to see
other's information.

\\servername\sharedfolder\SurveyReplies\ & ActiveWorkbook.Name & " " &
Format(Now, "dd-mmm-yy h-mm-ss") & ".xls"

Of course, this assumes that no 2 people try to save at exactly the same
second. Likely ?

NickHK

"DeAnna" wrote in message
...
I am creating a company survey and want to email the Excel document to all
employees. They will need to save it to a common file on our network and
also I want to keep it confidential. I was thinking of creating a macro

that
was a "save as" and assigning it to a button - first of all will that

work?
Second - can I create a "save as" that adds the date and exact time to the
document so that each form that is completed is saved seperately? (PS: to

say
that I am a novice might be an compliment)



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
need to save multi lingual content from an Excel file to a CSV fil NormaP Excel Discussion (Misc queries) 0 May 7th 10 10:49 PM
prompt user to save file as {desired_name} and save it to a variab GeneWan Excel Programming 1 January 5th 07 06:46 AM
Allowing User to save file Jordan Excel Programming 5 April 27th 06 07:24 PM
create multi-field, with layout, user questionnaire to save reply. Markhaynie Excel Programming 1 October 8th 04 11:42 PM
Prompt user to save their file Sharon[_5_] Excel Programming 4 September 29th 03 09:44 PM


All times are GMT +1. The time now is 03:54 PM.

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"