Hi everyone,
I have one question here.How to remove unwrap text after exporting report from Access to Excel?
Thank you.
Hi everyone,
I have one question here.How to remove unwrap text after exporting report from Access to Excel?
Thank you.
I have never had to export report to Excel. What is 'unwrap text'?
How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.
sorry for mistake question above. actually how to remove wrap text,means how to unwrap text? when i export it into excel,it will appear in big space n waste so much pages when print it,since I want end user convenience with my system, I want my system (means Access) automate unwrap text when exporting it into system,end user no need to edit it at excel since they have really big databases.
Probably depends on what is causing the text to 'wrap'. Are there embedded carriage returns in the text? Is the Excel cell formatted for wrapping?
How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.
Yes,it is formatted into wrap text.i try to find wrap text property at access but i didn't find it,maybe it is related to Excel matter.
There isn't a wrap property in Access. Text just always wraps. Something in the export must trigger Excel to set the cells wrap checked on. Haven't been able to replicate that behavior. Do you want to provide project?
How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.
is there another way to attach file as my database is only 700kb? because when i want to attach it,it only allow 500kb.
Zip with Windows Compression. 2mb zip allowed.
How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.
This is sample of data.
I just ran that export macro. Text in the cells are not wrapping but the rows are sized taller than needed. Has something to do with item_desc field that has comma separated text string. I removed that field from the report and the spreadsheet rows are normal height. Controlling this will require VBA that opens the new spreadsheet and resets the row height.
How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.
ok,may i know vba code? i also try .wraptext=false but it is still same as before.
Wrapping is not the issue, it is row height. You need code to open the Excel file. Common topic, here is one reference: http://p2p.wrox.com/excel-vba/10510-...-file-vba.html
Then you need to set row height.
So something like:
Dim oExcel as Excel.Application
Dim oWB as Workbook
Set oExcel = new Excel.Application
Set oWB = oExcel.Workbooks.Open(<pathToWorkbookHere>)
oWB.Worksheets("Sheet1").Cells.EntireRow.AutoFit
Last edited by June7; 03-17-2012 at 12:36 PM.
How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.