Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
I am having trouble writing a macro that when ran it will save my file
into a network location and prompt me for the file name. The network path will always be the same place but the file name will change. Any help would be great. thanks, KO |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
KO,
Maybe you could incorporate the current time into the filename to make it unique? Rob "turtle" wrote in message om... I am having trouble writing a macro that when ran it will save my file into a network location and prompt me for the file name. The network path will always be the same place but the file name will change. Any help would be great. thanks, KO |
#3
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
You could use
ActiveWorkbook.saveas("c:\direcory\" & inputbox("File Name ?")) This will just pop up a simple box to type in your file name and will save it to the c drive in the folder you choose. "Rob van Gelder" wrote in message ... KO, Maybe you could incorporate the current time into the filename to make it unique? Rob "turtle" wrote in message om... I am having trouble writing a macro that when ran it will save my file into a network location and prompt me for the file name. The network path will always be the same place but the file name will change. Any help would be great. thanks, KO |
#4
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Dim sFile As String
sFile$ = Application.GetSaveAsFilename() If sFile = False Then Exit Sub End If If InStr(1, sFile, ".xls") = 0 Then sFile = sFile & ".xls" End If ActiveWorkbook.SaveAs (sFile) --- Message posted from http://www.ExcelForum.com/ |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
excel 2003 file converted to .xlsm file when save to network drive | Excel Discussion (Misc queries) | |||
My computer will not save to my network drive | Excel Discussion (Misc queries) | |||
Excel 2k3: Workbook on network drive, when save creates new file | Excel Discussion (Misc queries) | |||
why am I unable to save a Excel file on a network drive%3f | Excel Worksheet Functions | |||
How to Save on a Network Drive using UNC? | Excel Programming |