Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 10
Default help on creating five folders

Private Sub Folders_Click()
MkDir "C:\\Globe Photo Engraving\Jobs\" & Range("C3").Value
MkDir "C:\\Globe Photo Engraving\Jobs\" & Range("C3").Value \ ART
MkDir "C:\\Globe Photo Engraving\Jobs\" & Range("C3").Value \ GCODE
MkDir "C:\\Globe Photo Engraving\Jobs\" & Range("C3").Value \ LG1
MkDir "C:\\Globe Photo Engraving\Jobs\" & Range("C3").Value \ LG3
MkDir "C:\\Globe Photo Engraving\Jobs\" & Range("C3").Value \ LR2
End Sub

C:\Globe Photo Engraving\Jobs\("C3")\ART
G-CODE
LG1
LG3
LR2
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 35,218
Default help on creating five folders

Drop one of the backslashes after the drive letter and put the last subfolder
name in double quotes:

MkDir "C:\Globe Photo Engraving\Jobs\" & Range("C3").Value & "\ART"





David Shoemaker wrote:

Private Sub Folders_Click()
MkDir "C:\\Globe Photo Engraving\Jobs\" & Range("C3").Value
MkDir "C:\\Globe Photo Engraving\Jobs\" & Range("C3").Value \ ART
MkDir "C:\\Globe Photo Engraving\Jobs\" & Range("C3").Value \ GCODE
MkDir "C:\\Globe Photo Engraving\Jobs\" & Range("C3").Value \ LG1
MkDir "C:\\Globe Photo Engraving\Jobs\" & Range("C3").Value \ LG3
MkDir "C:\\Globe Photo Engraving\Jobs\" & Range("C3").Value \ LR2
End Sub

C:\Globe Photo Engraving\Jobs\("C3")\ART
G-CODE
LG1
LG3
LR2


--

Dave Peterson
Reply
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
Creating folders Peter[_61_] Excel Programming 5 March 20th 07 03:52 PM
Creating List From Folders Don Excel Programming 12 August 11th 06 12:47 AM
Help with Creating folders on Save Alarmbloke Excel Discussion (Misc queries) 3 December 22nd 05 06:00 PM
Creating folders using VBA Fred Smith Excel Programming 2 May 8th 05 03:27 PM
Creating folders with VB Foss Excel Programming 2 February 24th 04 10:08 AM


All times are GMT +1. The time now is 02:51 PM.

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"