View Single Post
  #7   Report Post  
Posted to microsoft.public.excel.programming
Gary Keramidas Gary Keramidas is offline
external usenet poster
 
Posts: 2,494
Default procedural help lease

ended up just using this to get the file name to open:
FileToOpen = Dir(fPath & fName & "*.xls")


--


Gary


"Gary Keramidas" <GKeramidasATmsn.com wrote in message
...
i guess i should ask one other thing.

what would be the best way to open a file based on a partial filename? the
known partial part is always the beginning of the filename.

--


Gary


"Gary Keramidas" <GKeramidasATmsn.com wrote in message
...
i am just looking for a short description, no code, on how you would proceed
with this task. i have an idea, but just wanted some other input before i
really got into it too far.

looking to summarize spice blends. every blend is in a separate workbook
whose name starts with a unique number then has some text description then
.xls.

the range of cells for the spices needed for that blend is always the same in
each workbook.

so in the summary workbook, if the user wanted to schedule a particular
blend, they would just enter the numerical part of the filename then i would
just find and open it.

then i would need to populate the columns with the spices and the number of
pounds needed.

with multiple blends scheduled, there would be some unique spices and some
that are reused, like salt, for example. so i would need to add to the number
in that column, but if the spice hasn't been used yet, i would need to add a
column for that spice.

would you import all of the blends for the week in a "work" sheet, sort, then
delete the dupes and then populate the actual schedule sheet?

just looking for some ideas here, i know it's not much to go on.

thanks for reading.

--


Gary