PC Review


Reply
Thread Tools Rate Thread

Create Multipe folders and naming them by Cells in Columns using vba

 
 
sseyerle
Guest
Posts: n/a
 
      11th Dec 2008
Hello,
I have a worsheet where the Last Names will make up a large folder
directory where we will store scanned documents by last name.

I have an excel workbook named "Student Name"
How do I take the 1100 or so names in column A and create empty
folders named by the cells in Column A in a folder named "Test" on the
desktop?

Thank you
 
Reply With Quote
 
 
 
 
Jarek Kujawa
Guest
Posts: n/a
 
      11th Dec 2008
select yr names in col A

and use the following macro:

Sub cus()

For Each cell In Selection
MkDir ("C:\Documents and Settings\Desktop\Test\" & cell.Value)
Next cell

End Sub

adjust the path ("C:\Documents and Settings\Desktop\Test\")
accordingly



On 11 Gru, 20:17, sseyerle <sseye...@gmail.com> wrote:
> Hello,
> I have a worsheet where the Last Names will make up a large folder
> directory where we will store scanned documents by last name.
>
> I have an excel workbook named "Student Name"
> How do I take the 1100 or so names in column A and create empty
> folders named by the cells in Column A in a folder named "Test" on the
> desktop?
>
> Thank you


 
Reply With Quote
 
sseyerle
Guest
Posts: n/a
 
      11th Dec 2008
Thank you for the reply
I am getting a runtime error and only some of the folders are being
created?
any ideas

Sub cus()


For Each cell In Selection
MkDir ("C:\Documents and Settings\Ryan\Desktop\Test\" &
cell.Value)
Next cell


End Sub










On Dec 11, 2:30*pm, Jarek Kujawa <bli...@gazeta.pl> wrote:
> select yr names in col A
>
> and use the following macro:
>
> Sub cus()
>
> For Each cell In Selection
> * * * *MkDir ("C:\Documents and Settings\Desktop\Test\" & cell.Value)
> Next cell
>
> End Sub
>
> adjust the path ("C:\Documents and Settings\Desktop\Test\")
> accordingly
>
> On 11 Gru, 20:17, sseyerle <sseye...@gmail.com> wrote:
>
>
>
> > Hello,
> > I have a worsheet where the Last Names will make up a large folder
> > directory where we will store scanned documents by last name.

>
> > I have an excel workbook named "Student Name"
> > How do I take the 1100 or so names in column A and create empty
> > folders named by the cells in Column A in a folder named "Test" on the
> > desktop?

>
> > Thank you- Hide quoted text -

>
> - Show quoted text -


 
Reply With Quote
 
Jarek Kujawa
Guest
Posts: n/a
 
      11th Dec 2008
don't know
look into yr Last Names, probably some of the names contain characters
that cannot be used in folder names

On 11 Gru, 20:42, sseyerle <sseye...@gmail.com> wrote:
> Thank you for the reply
> I am getting a runtime error and only some of the folders are being
> created?
> any ideas
>
> Sub cus()
>
> For Each cell In Selection
> * * * *MkDir ("C:\Documents and Settings\Ryan\Desktop\Test\" &
> cell.Value)
> Next cell
>
> End Sub
>
> On Dec 11, 2:30*pm, Jarek Kujawa <bli...@gazeta.pl> wrote:
>
>
>
> > select yr names in col A

>
> > and use the following macro:

>
> > Sub cus()

>
> > For Each cell In Selection
> > * * * *MkDir ("C:\Documents and Settings\Desktop\Test\" & cell.Value)
> > Next cell

>
> > End Sub

>
> > adjust the path ("C:\Documents and Settings\Desktop\Test\")
> > accordingly

>
> > On 11 Gru, 20:17, sseyerle <sseye...@gmail.com> wrote:

>
> > > Hello,
> > > I have a worsheet where the Last Names will make up a large folder
> > > directory where we will store scanned documents by last name.

>
> > > I have an excel workbook named "Student Name"
> > > How do I take the 1100 or so names in column A and create empty
> > > folders named by the cells in Column A in a folder named "Test" on the
> > > desktop?

>
> > > Thank you- Hide quoted text -

>
> > - Show quoted text -- Ukryj cytowany tekst -

>
> - Pokaż cytowany tekst -


 
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
Pivot Table with multipe columns Blair Macdonald Microsoft Excel Misc 0 8th Dec 2009 08:59 PM
Naming convention to create folders =?Utf-8?B?U3Jpbml2YXMuZGV2aW5lbmk=?= Windows XP Basics 3 12th Oct 2007 09:31 PM
lookup from multipe cells =?Utf-8?B?Y21jY3VyZHkyMw==?= Microsoft Excel Misc 1 1st Feb 2007 09:06 PM
Multipe new folders at once ? kb Windows XP Basics 2 5th Jan 2005 01:36 PM
Copinig Files to Multipe Folders Rayomand Microsoft Windows 2000 File System 0 16th Sep 2003 06:07 AM


Features
 

Advertising
 

Newsgroups
 


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