Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 312
Default Create Folder

I found the code below from a Tom Ogilvy message board posting (Thanks Tom).
The code creates a folder in a specific path from a list. My question is
this - can this be modified to create folders from ONLY UNIQUE entries of
the list? My list is hundreds of rows long, and many many are duplicate.
Thanks!!

Dim rng As Range, cell As Range
Set rng = Range(Range("A1"), Range("A1").End(xlDown))
For Each cell In rng
MkDir "S:\Global_Share\Operations\Kineticom
Timesheet\Approvals\Supervisors\" & cell.Value
Next



  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,123
Default Create Folder

Hi Steph

Create a unique list with AdvancedFilter and use that list in Tom's code
http://www.contextures.com/xladvfilter01.html#FilterUR

--
Regards Ron de Bruin
http://www.rondebruin.nl


"Steph" wrote in message ...
I found the code below from a Tom Ogilvy message board posting (Thanks Tom).
The code creates a folder in a specific path from a list. My question is
this - can this be modified to create folders from ONLY UNIQUE entries of
the list? My list is hundreds of rows long, and many many are duplicate.
Thanks!!

Dim rng As Range, cell As Range
Set rng = Range(Range("A1"), Range("A1").End(xlDown))
For Each cell In rng
MkDir "S:\Global_Share\Operations\Kineticom
Timesheet\Approvals\Supervisors\" & cell.Value
Next





  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 312
Default Create Folder

Got it. Thanks again, Ron!

"Ron de Bruin" wrote in message
...
Hi Steph

Create a unique list with AdvancedFilter and use that list in Tom's code
http://www.contextures.com/xladvfilter01.html#FilterUR

--
Regards Ron de Bruin
http://www.rondebruin.nl


"Steph" wrote in message

...
I found the code below from a Tom Ogilvy message board posting (Thanks

Tom).
The code creates a folder in a specific path from a list. My question

is
this - can this be modified to create folders from ONLY UNIQUE entries

of
the list? My list is hundreds of rows long, and many many are

duplicate.
Thanks!!

Dim rng As Range, cell As Range
Set rng = Range(Range("A1"), Range("A1").End(xlDown))
For Each cell In rng
MkDir "S:\Global_Share\Operations\Kineticom
Timesheet\Approvals\Supervisors\" & cell.Value
Next







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
Create Folder Using VBA DoooWhat Excel Discussion (Misc queries) 5 September 21st 07 10:28 PM
Create New Folder JMay Excel Programming 6 June 9th 04 02:14 PM
Create Folder and Text File in folder Todd Huttentsine Excel Programming 2 April 29th 04 03:41 PM
Create Folder / Copy Folder / Replace Murray Outtrim[_2_] Excel Programming 0 February 24th 04 06:40 PM
Create a folder.... Paiolas Excel Programming 0 September 17th 03 08:20 PM


All times are GMT +1. The time now is 12:15 PM.

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"