View Single Post
  #2   Report Post  
Posted to microsoft.public.excel.programming
Chip Pearson Chip Pearson is offline
external usenet poster
 
Posts: 7,247
Default File System Object

Neil,

Try

Dim FSO As Object
Set FSO = CreateObject("Scripting.FileSystemObject")
FSO.CreateFolder foldername


--
Cordially,
Chip Pearson
Microsoft MVP - Excel
www.cpearson.com



"Neil" wrote in message
...
Hi all, sorry that this is a lame question, but im a
newbie !!

I want to create a dir on my HDD with the name taken from
a cell in the spreadsheet, there is a createfolder method
as below

Syntax
object.CreateFolder(foldername)

The CreateFolder method has these parts:
Description object Required. Always the name of a
FileSystemObject.
foldername Required. String expression that identifies
the folder to create.

What is the filesystemobject name that I am supposed to
use ?

Many thanks