Didn't know how to word the Title however i can explain what im trying to do.
I have a windows Form that is opening an Excel Workbook Template, Sending Data from the forum to the right Cells and then saving the Worksheet. My problem is Saving the Excel Workbook after its done. I need it to inherit its name from the Order Number (Which is in a Text box Field in my Form). This way the user can open the form, complete it hit the button that starts the data export process and start again fresh. The files are all going to be saved locally but at the end of the day they will export them to another folder. So *ie the user fills out info for job *5564 when it saves i would like it to save in the folder as #5564.xls or whatever. Then if the user does job *6632 it would be saved as #6632.xls and so on.
Im using this code to save as right now and it works great, only problem is it is the same name every time and trys to overwrite the existing. Not to mention they are in now way distinguishable by job.
'oBook.Saveas("C:\Users\******\Desktop\" & "Test.Xls")'
How would i go about something like this but with the file name maybe " & "(textbox5.text).Xls"))'
Because obviously the code right above would never work lol
Thanks for any input!
I have a windows Form that is opening an Excel Workbook Template, Sending Data from the forum to the right Cells and then saving the Worksheet. My problem is Saving the Excel Workbook after its done. I need it to inherit its name from the Order Number (Which is in a Text box Field in my Form). This way the user can open the form, complete it hit the button that starts the data export process and start again fresh. The files are all going to be saved locally but at the end of the day they will export them to another folder. So *ie the user fills out info for job *5564 when it saves i would like it to save in the folder as #5564.xls or whatever. Then if the user does job *6632 it would be saved as #6632.xls and so on.
Im using this code to save as right now and it works great, only problem is it is the same name every time and trys to overwrite the existing. Not to mention they are in now way distinguishable by job.
'oBook.Saveas("C:\Users\******\Desktop\" & "Test.Xls")'
How would i go about something like this but with the file name maybe " & "(textbox5.text).Xls"))'
Because obviously the code right above would never work lol
Thanks for any input!