Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
hi, i'm a n00b on vba, can somebody tell me how to get (extract) the
folder name from ActiveWorkbook.Path? i read about InStr() & InStrRev(), but i don't know how to use the result from InStr (as i find below), and InStrRev i can't make sense of (returns 10 from comparing "D:\BACKUP\myjobprices\tmp" with "\", and 0 if starts at 1) so i got a macro from this group, but instead of extract the folder name, it returns the root & parent folder name/path. so instead of "tmp", i got "D:\BACKUP\myjobprices" here's where i got the function: http://groups.google.com/group/micro...4f416e2bef2ee8 any help will be great. i may try another route, since there's a date entry inside the file, which will be combined with another data (job/project name) for duplicating the file inside a new folder name. but i want to exhaust this option first. thanks |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
how can i change my default working folder to a networked folder? | Excel Discussion (Misc queries) | |||
How to decide folder-depth or How to select more folders/subfolders (folder-tree) ? | Excel Discussion (Misc queries) | |||
how can I specific a folder with wildcard criteria and excel will import all the correct files in that folder? | Excel Discussion (Misc queries) | |||
how can I specific a folder with wildcard criteria and excel will import all the correct files in that folder? | Excel Programming | |||
Quick question - quick answer about assigning shortcut keys | Excel Programming |