PC Review


Reply
Thread Tools Rate Thread

Autocreate folders

 
 
Mike
Guest
Posts: n/a
 
      1st May 2006
Is there a way to auto create windows explorer folders from an excel
spreadsheet? Like say we have a customer name list in the first column and
would like windows folders generated from that first column. TIA

Mike


 
Reply With Quote
 
 
 
 
Jim Cone
Guest
Posts: n/a
 
      2nd May 2006
Mike,
Yes and it's pretty easy to do. However it requires a macro.
If you are up to that then the following code creates a new
folder using text from the selected cell.
'--------
Sub CreateNewFolder()
'Prepare variables for use.
Dim strText As String
Dim strPath As String

'Get folder name from the selected cell.
strText = ActiveCell.Text

'User must enter the correct folder path below.
strPath = "C:\Documents and Settings\user\My Documents\Customer List\"

'Create the new folder using the path and folder name.
MkDir strPath & strText
End Sub
----------
Jim Cone
San Francisco, USA


http://www.realezsites.com/bus/primitivesoftware
"Mike"
<(E-Mail Removed)>
wrote in message
Is there a way to auto create windows explorer folders from an excel
spreadsheet? Like say we have a customer name list in the first column and
would like windows folders generated from that first column. TIA
Mike


 
Reply With Quote
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Autocreate Worksheet =?Utf-8?B?S2V2aW4=?= Microsoft Excel Misc 1 29th Aug 2007 05:36 PM
autocreate broke =?Utf-8?B?dGFtYXJha2F5?= Microsoft Outlook Discussion 0 26th Jul 2007 08:28 PM
Autocreate folders Mike Microsoft Excel Misc 1 2nd May 2006 01:27 AM
Autocreate POINTERS? Jörgen Persson Microsoft Windows 2000 DNS 1 1st May 2005 08:22 PM
autocreate chart paradise Microsoft Excel Programming 1 27th Nov 2003 08:18 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 12:45 AM.