Export Data with Formatting and Layout Using Form

atfaniqbal

Registered User.
Local time
Today, 16:48
Joined
Jun 22, 2013
Messages
12
Export Query Data with Formatting and Layout Using A Button On Form Before Or After DoCmd.TransferSpreadsheet

Please Help...
 
The Above Links Couldn't Provide The Required Help.. :(
 
No help, eh:confused:

So what do you have in place at the moment?

How are you transferring the data?
What have you tried to apply the formatting already in place?
 
As Of Now Nothing Applied But Need Code For Formatting The FieldNames To AutoFit The Column By Cell Data Of The Resultant Exported Query.

Using The Below Code To Export The Query :-
Private Sub Export_Click()
Dim Response As String
DoCmd.TransferSpreadsheet acExport, acSpreadsheetTypeExcel12Xml, HasFieldNames:=True, tablename:="query", FileName:="Files Not Recieved - " & Format(Now, "dd-mm-yyyy") & ".xlsx"
Response = MsgBox("Your File Has Been Saved To Your Current Directory (Usually Files Not Recieved - dd-mm-yyyy.xlsx).", vbOKOnly, "File Saved")
End Sub


No help, eh:confused:

So what do you have in place at the moment?

How are you transferring the data?
What have you tried to apply the formatting already in place?
 

Users who are viewing this thread

Back
Top Bottom