LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Saving File automatically

Hello,

I am using the below to save a file to a drive. I want it t
automatically save it in the folder (textbox1) based on what is entere
into a userform. But I am getting an error when it is saving the file.
It say's the folder name has already been created so it won't save th
document there. How can I bypass this? The form is going to b
entered on a daily basis, and I need it to save the files in th
specific folder based on the textbox1 input.

newFolder$ = "\\Pkcfp009\mait_e&d\NewHireDocumentation\Transiti on t
Success Plans\" & TextBox1.Text
MkDir newFolder$
newFile$ = newFolder$ & "\" & TextBox2.Text & ".xls"
ThisWorkbook.SaveAs newFile

--
Message posted from http://www.ExcelForum.com

 
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
Saving a file automatically everytime it is closed Wombat Excel Discussion (Misc queries) 4 October 28th 09 06:36 PM
File/Close automatically saving changes without prompt Joe@SAA Excel Discussion (Misc queries) 0 June 23rd 08 10:31 PM
Saving file as current month name automatically gold Excel Discussion (Misc queries) 2 August 25th 07 05:34 PM
Automatically saving changes Jens Palacios Neffke[_2_] Excel Discussion (Misc queries) 3 April 17th 07 08:00 AM
saving workbook to destination file automatically mikespeck Excel Worksheet Functions 5 August 22nd 06 10:13 PM


All times are GMT +1. The time now is 10:21 AM.

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"