Home |
Search |
Today's Posts |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Here is some code to get you basically what you want. Instead of hard
coding the string names, you could replace with Me.TextBox1.Value or whatever your case is. Sub addfilefolder() Dim folderPath As String Dim fileName As String folderPath = "C:\Users\kurtz\Desktop\test" fileName = TextBoxJobNumber.Value & ".xlsx" Workbooks.Add MkDir folderPath ActiveWorkbook.SaveAs Filename:=folderPath & "\" & fileName Workbooks(fileName).Close End Sub Hope this helps dk |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Save a worksheet by itself to a new file | Excel Discussion (Misc queries) | |||
Convert and save a worksheet as a PDF file | Excel Programming | |||
Save data entered into UserForm to be Edited later | Excel Programming | |||
Save a worksheet as an Htm file | Excel Programming | |||
How to save each worksheet as seperate file? | Excel Programming |