Export to Excel Format

Woodpile

New Member
Joined
Sep 14, 2007
Messages
38
Office Version
  1. 365
  2. 2016
Platform
  1. Windows
Hello All,

I have several queries I export to Excel for publication. Is there a way to turn off Wrap Text in the resulting .xlsx file so I don't have to do it manually every time?


Thank you.
 

Excel Facts

Format cells as date
Select range and press Ctrl+Shift+3 to format cells as date. (Shift 3 is the # sign which sort of looks like a small calendar).
JonXL,

Thank you for responding. I use a procedure to export each query. Here is a typical example. The only difference would be the query and target file name:

Private Sub Export_PCMS_No_Notif_Click()
'Exports All PCMS IWRs with No Notification

DoCmd.SetWarnings False

DoCmd.OutputTo acOutputQuery, "50- PCMS No Notification", "ExcelWorkbook(*.xlsx)", "\\BRCNA01A\Shared\INSP- PCMS No Notification.xlsx", False, "", , acExportQualityPrint

DoCmd.SetWarnings True

MsgBox "PCMS IWRs With No Notification Export Complete", vbOKOnly, "Function Progress"

End Sub

Hopefully this helps. This issue is not a show-stopper but it is annoying and takes time on a repetitive task.

Ed
 
Upvote 0
I've read that in older Excel versions (xls) this could be prevented by sizing the table fields so that all the field content is showing without wrapping. No idea if you can solve this simply export as xls in newer versions. Your only option might be to use Automation on Excel from Access.
 
Upvote 0
Why aren't you pulling the data from Access using Excel's PowerQuery?
 
Upvote 0
Spiller,

I did not know that was a possibility. I will look into that.
I have a lot of reports set up the way I know how to do them but if this works and makes sense, I will redo them.

This is a function I should look for in Excel?
 
Upvote 0

Forum statistics

Threads
1,215,054
Messages
6,122,893
Members
449,097
Latest member
dbomb1414

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top