ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Saving using a path (https://www.excelbanter.com/excel-programming/286959-saving-using-path.html)

HelpMe

Saving using a path
 
I am tring to use the input from a user form to save this workbook int
a designated location below is what I am tring to use but isn't workin
so I ahve something wrong not sure what it is. I want it to save upo
clicking the Ok Button. "JobNoTXT" and "ComboBox1" are from th
userform, and xldata is a folder designation. This is need to create
uniform way to name these sheets. Thanks for any input.



Private Sub OKBTN_Click()



ActiveWorkbook.SaveA
Filename:="L:\"JobNoTXT.Value"\xldata\"ComboBox1.V alue".xls "



End Su

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


Bob Phillips[_6_]

Saving using a path
 
Try this

Private Sub OKBTN_Click()

ActiveWorkbook.SaveAs _
Filename:="L:\" & JobNoTXT.Value & "\xldata\" & ComboBox1.Value &
".xls "

End Sub


--

HTH

Bob Phillips
... looking out across Poole Harbour to the Purbecks
(remove nothere from the email address if mailing direct)

"HelpMe " wrote in message
...
I am tring to use the input from a user form to save this workbook into
a designated location below is what I am tring to use but isn't working
so I ahve something wrong not sure what it is. I want it to save upon
clicking the Ok Button. "JobNoTXT" and "ComboBox1" are from the
userform, and xldata is a folder designation. This is need to create a
uniform way to name these sheets. Thanks for any input.



Private Sub OKBTN_Click()



ActiveWorkbook.SaveAs
Filename:="L:\"JobNoTXT.Value"\xldata\"ComboBox1.V alue".xls "



End Sub


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




HelpMe

Saving using a path
 
Thanks That worked. I swear I had that at one point and it gave me an
error. Oh well


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



All times are GMT +1. The time now is 12:32 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com