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: 103
Default Dynamic file location macro

Hello;

I posted this in programming, but realize that it was in a relatively old
post so I am reposting. Sorry for any inconvenience.

Gary's Student posted the following macro for reading file names from a
folder.

-------------------------------------

Sub list_um()
Dim F As String
Dim roww As Long
roww = 0
Dim FileLocSpec As String
FileLocSpec = "C:\Temp\*.*"
F = Dir(FileLocSpec)
Do Until F = ""
roww = roww + 1
Cells(roww, 1).Value = F
F = Dir
Loop
End Sub

----------------------------------------------

We print alot of individual CAD drawings and it has been useful in knowing
what prints are completed.

I would like to know if anyone knows of a way to make this more dynamic. I
print to a single folder and move the pdf's to the appropriate job folder.

I would like to paste the path to the job folder I am currently working on
into a cell and have the macro look to the cell to find the folder. Or even
better, some sort of concatenation in the cell based on a selection menu. The
job folders are very consistent (5 digit number, space, open parin, job name,
close parin) with the job name being the only variable data. I can choose
that from a drop down list as the path is always

C:\Documents and Settings\Frank Pytel\My Documents\Jobs\*

* being the actual job folder. I can easily creat a list of these within a
named range.

Am I rambling. Is there any body out there? I really appreciate any help
that you may be able and willing to offer. Thanks in advance.

Have a Blessed Day.

Frank Pytel
 
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
Macro to Save File to specific location when closing paankadu Excel Discussion (Misc queries) 3 October 26th 09 11:52 PM
Macro - save to current location vs excel default location leezard Excel Discussion (Misc queries) 0 October 28th 08 03:04 PM
Using Dynamic Cell Address As Formula Location [email protected] Excel Worksheet Functions 4 March 6th 07 06:37 AM
Using Macro to Save Copy of File to New Location Chris Z Excel Discussion (Misc queries) 3 September 12th 06 11:26 PM
saving file name and location with excel macro Alex Suardi Excel Programming 1 November 2nd 05 03:30 PM


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