Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 32
Default Help with Saving to a Folder

I need to figure out how to programatically change the path name when
saving or to save to a folder using a macro. We use ID numbers to
access our computers and they show up in the path when we save ("My
Documents\ID number\folder..."). I want to know how I can just use
the last part of the path and let the reset default or something so
that the ID number for whoever uses the program doesn't matter. Any
other suggestions are welcome.

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 220
Default Help with Saving to a Folder

Justin,

This will give you the path to the desktop:


Sub Test()
Dim csFILENAME As String
Dim wsh As Object

Set wsh = CreateObject("wscript.shell")
csFILENAME = wsh.SpecialFolders.Item("Desktop") & "\"

MsgBox csFILENAME

End Sub


--
Dan

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 32
Default Help with Saving to a Folder

On Aug 10, 4:35 pm, "Dan R." wrote:
Justin,

This will give you the path to the desktop:

Sub Test()
Dim csFILENAME As String
Dim wsh As Object

Set wsh = CreateObject("wscript.shell")
csFILENAME = wsh.SpecialFolders.Item("Desktop") & "\"

MsgBox csFILENAME

End Sub

--
Dan


The problem is that I'm saving things that have the same name. I'm
trying to save them to a particular folder so that the repeats won't
be replaced.

Thanks

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
Templates - saving in specified folder Kathrine Excel Discussion (Misc queries) 4 October 30th 08 04:02 PM
Saving Files into a Folder Justin Philips Excel Programming 0 August 10th 07 02:17 PM
Saving Files into a Folder Justin Philips Excel Programming 2 August 9th 07 08:06 PM
Saving to a certain month folder Stephen Excel Programming 2 May 9th 06 05:44 PM
Specify a folder for saving to?!?! solo_razor[_12_] Excel Programming 1 October 28th 03 10:14 AM


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