Forum home » Delegate support and help forum » Microsoft Excel VBA Training and help » VBA
VBA
Resolved · Low Priority · Version 2007
Hugh has attended:
Excel VBA Intro Intermediate course
VBA
bets way to make a filepath to another workbook which i can change easily
For upcoming training course dates see: Pricing & availability
RE: VBA
Hi Hugh
Thanks for your question
It is possible to create a new folder at a particular location by using the mkdir function.
For example, the following code will create a new folder in my documents. The folder's name is specified by the variable strFolder.
MkDir "C:\Documents and Settings\Development\My Documents\" & strFolder
You could also use the SaveAs method to save a file to a particular directory
ActiveWorkbook.SaveAs Filename:= _
"C:\Documents and Settings\Development\My Documents\" & strFolder & "\" & strName & ".xls"
Hope this is useful
Regards
Stephen
Wed 18 Feb 2009: Automatically marked as resolved.
|
