LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Save to Network Drive Problems. Expanding Current code


I have some existing code which takes two cell values and combines them
together to make a file name, saves the document and exits Excel.

Code:
--------------------

ActiveWorkbook.SaveAs Filename:=Sheets("Input").Range("E9").Value & " " & Sheets("Input").Range("E11").Value & ".xls"
If Application.Workbooks.Count = 1 Then
Application.Quit
End If
End Sub
--------------------


Currently the file saves to my local PC, but i would like to save to a
newtwork drive with the following path - "N:\COA Data\"

I have tried to search, but but i'm having trouble expanding my current
code with the dynamic file name to include the network path.
Whenever i edit the "ActiveWorkbook.SaveAs Filename:=Sheets" part of
the code to specify a path i get errors.

Is this at all possible, can anyone help?


--
mcgrad
------------------------------------------------------------------------
mcgrad's Profile: http://www.excelforum.com/member.php...o&userid=30821
View this thread: http://www.excelforum.com/showthread...hreadid=504861

 
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 slow to save to network drive Chris Excel Discussion (Misc queries) 1 May 8th 08 09:43 PM
My computer will not save to my network drive helpsaving Excel Discussion (Misc queries) 1 April 19th 06 05:39 AM
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
Save file to Network Drive and prompt for name turtle[_2_] Excel Programming 3 January 15th 04 02:47 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 07:14 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"