3 Replies Latest reply: Jul 27, 2011 11:23 AM by Gallopaway RSS

    Macro Problem.....Creating folder using macro

      Hi All,

       

      Please help out.....thanks in advance......

       

      I use the following macro I use......

       

      sub test

      dim fsoObj

      set fsoObj = CreateObject("Scripting.FileSystemObject")

      set obj = ActiveDocument.GetSheetObject("CH01")

      fsoObj.CreateFolder("C:\Images")

      obj.ExportBitmapToFile "C:\Images\test.bmp"

      end sub

       

      and I get the following error msg.....

       

      ActiveX component can't create object: 'Scripting.FileSystemObject'

       

      pls help me out.....

       

      All I need is to create a folder in the c drive with the name Images.