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: 23
Default Create subfolders in a folder

Hello VB Bugs!

I was successful in creating a folder based on an excel
cell. The folder is named accordingly what the user types.
This is the following code I use to create first folder.
How can I create subfolders and label them permanently??
The 1st folder name will always be relative and subfolders name will be
absolute.
Thanks & enjoy the live bugs!! Myrna

Dim x As String
Dim cell As Range

On Error Resume Next
cLastRow = Cells(Rows.Count, "A").End(xlUp).Row
For Each cell In Range("A" & cLastRow)
x = "S:\Order Folders\2004 Open Orders\" & cell.Value
MkDir x
Next cell

Note: This procedure is excuted in a UserForm OK Button


*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
 
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
How to decide folder-depth or How to select more folders/subfolders (folder-tree) ? Subteam Excel Discussion (Misc queries) 2 May 7th 06 08:14 PM
create new Folder dallas Excel Programming 5 June 5th 04 10:42 PM
Create Folder and Text File in folder Todd Huttentsine Excel Programming 2 April 29th 04 03:41 PM
Trouble making a report of all Files within a Folder and all Subfolders? SuperJas Excel Programming 2 April 2nd 04 02:41 AM
Create Folder / Copy Folder / Replace Murray Outtrim[_2_] Excel Programming 0 February 24th 04 06:40 PM


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