Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 5
Default Save file to Network Drive and prompt for name

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   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1,236
Default Save file to Network Drive and prompt for name

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   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3
Default Save file to Network Drive and prompt for name

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   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Save file to Network Drive and prompt for name

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
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
excel 2003 file converted to .xlsm file when save to network drive Chris Excel Discussion (Misc queries) 3 January 23rd 08 02:56 PM
My computer will not save to my network drive helpsaving Excel Discussion (Misc queries) 1 April 19th 06 05:39 AM
Excel 2k3: Workbook on network drive, when save creates new file AVCCTech Excel Discussion (Misc queries) 1 July 7th 05 08:05 PM
why am I unable to save a Excel file on a network drive%3f ken Excel Worksheet Functions 3 March 18th 05 01:55 AM
How to Save on a Network Drive using UNC? Scooby912 Excel Programming 1 August 1st 03 05:39 PM


All times are GMT +1. The time now is 11:25 AM.

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"