Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 5
Default Saving to a Network Path using VBA


Hi Guys,

I may be asking a bit much with this! but any guidance is
very much appreciated.

I have recently written an add-in that will be used very
frequently. What I would like to do is make the user
enter a job number in a an input box on opening the add-in
file, and then for this file to be saved to a
predetermined network path with the entered number i.e.
J:\addin\"jobnumber.xls".

Is this possible?

Thanks for your help in advance


Michael

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,123
Default Saving to a Network Path using VBA

Try this

Sub test()
Dim mynum As Long
Dim yoursavestring As String
mynum = Application.InputBox("Enter a number", Type:=1)
yoursavestring = "J:\addin\jobnumber" & mynum & ".xls"
ActiveWorkbook.SaveAs yoursavestring
End Sub

you must also check if the file not exist

--
Regards Ron de Bruin
(Win XP Pro SP-1 XL2002 SP-2)
www.rondebruin.nl



"Mike R" wrote in message ...

Hi Guys,

I may be asking a bit much with this! but any guidance is
very much appreciated.

I have recently written an add-in that will be used very
frequently. What I would like to do is make the user
enter a job number in a an input box on opening the add-in
file, and then for this file to be saved to a
predetermined network path with the entered number i.e.
J:\addin\"jobnumber.xls".

Is this possible?

Thanks for your help in advance


Michael



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
Identify the network path a file was opened from (Excel2007) DataBoy Excel Discussion (Misc queries) 2 September 25th 09 03:33 PM
Exclude Network Path In PivotTable Based on Sharepoint eduboys Excel Discussion (Misc queries) 1 October 2nd 07 09:43 PM
user cannot access his share workbook after opening network path. phil Excel Discussion (Misc queries) 0 September 26th 06 04:48 PM
Path to a network drive CWillis Excel Discussion (Misc queries) 2 June 23rd 06 03:06 AM
Network Path Karen[_5_] Excel Programming 2 August 5th 03 12:05 PM


All times are GMT +1. The time now is 10:22 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"