Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
I am trying to create a command, that when clicked will print out a boo
twice and save it. It needs to create a new folder in the directory. The Name of the folder, needs to be what is in Text Box 1. This i what I currently have. Can someone point me in the right direction? Private Sub CommandButton1_Click() Unload Me ActiveWorkbook.PrintOut ChDir "\\Pkcfp009\Mait_e&d\NewHireDocumentation\La Forms\Transition to Success\" Dim NameOFile$ NameOFile = TextBox2.Text ThisWorkbook.SaveAs NameOFile & ".xls" ChDir "%USERPROFILE%\Transition to Success Plans\" Dim NameOFile$ NameOFile = TextBox2.Text ThisWorkbook.SaveAs NameOFile & ".xls" End Su -- Message posted from http://www.ExcelForum.com |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Saving a workbook by creating a folder & subfolder | Excel Worksheet Functions | |||
document information from folder | Excel Discussion (Misc queries) | |||
Templates - saving in specified folder | Excel Discussion (Misc queries) | |||
Saving file to a specific folder | Excel Discussion (Misc queries) | |||
Specify a folder for saving to?!?! | Excel Programming |