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: 6
Default Make sure file is in correct folder??

I'm new to this VBA thing, doing OK, but I'm getting lost here.
I'm working on a project that will be distributed to "newbies" to put it
nicely.
I know they will probably move the excel file around from it's intended
location.
In the application it creates a new version of itself for each new week.
I want to guarantee that new version is created in the My
Documents/Inventory folder.

I tried using CurDir to find out the current directory, it returns My
Documents every time, unless I manually do a File/Save As & then it reports
the proper My Documents/Inventory.

I just need to check the current directory, see if it's the My Doc/Inv & if
not, save it there, possibly creating the directory if they screwed it up!

& to add to the fun, this will be running on W98/2000/XP

Thanks!
--
Lee

www.raising-cain.com


 
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
To make the excel file in shared folder to be editable by every us Shefu Excel Worksheet Functions 1 September 12th 08 12:59 PM
Not updating Files from correct folder B Baggins Excel Discussion (Misc queries) 1 January 3rd 08 03:16 PM
Need code to save file to new folder, erase from old folder Ron M. Excel Discussion (Misc queries) 1 February 24th 06 06:02 PM
HOW DO I MAKE FILE FOLDER LABELS FROM EXCEL panda Excel Discussion (Misc queries) 1 February 17th 06 04:49 PM
how can I specific a folder with wildcard criteria and excel will import all the correct files in that folder? Raven Excel Discussion (Misc queries) 1 January 24th 06 03:28 PM


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