Ok, I have a export module in Access. This takes data from at least 10 different queries and paste into excel file. This works good.
As part of this, I use a input box to select which files to select
Code:
Dim RFQNUM As String
RFQNUM = InputBox("Enter RFQ Number")
Code:
Set rs = CurrentDb.OpenRecordset("SELECT FIELD FROM QUERY WHERE FIELD='" & RFQNUM & "'") '
Then at the end of the code, I close everything.
Code:
xlw.Close True ' close the EXCEL file and save the new data
Set xlw = Nothing
If blnEXCEL = True Then xlx.Quit
Set xlx = Nothing
End Function
I want to use this excel file as the template. I would like to do is rename the excel file before saving it. It would be great if I could rename as the input box value. It ok to be in the same folder, or maybe it would be better to move it.
I am still kind of new to VBA. My understanding is getting better, but I still cant don't know how to write it.