Results 1 to 3 of 3
  1. #1
    Thompyt is offline Expert
    Windows 8 Access 2010 32bit
    Join Date
    Sep 2014
    Location
    El Paso, TX
    Posts
    839

    Export Rich text to excel

    I figured out and had assistance with an earlier post. Now I run into another problem.

    How do I export the rich text fields to Excel without the <br>,,div. etc and have it look like the formatted characters as they are in the pdf and in the database rich text fields themselves?

    I am using this in VBA to export:
    DoCmd.TransferSpreadsheet 1, 10, "[ReportName", "Location" & NIE & " TeportOutputName - " & Tod & ".xlsx"

    I noticed the same issue with the text in the email body. I use this to add text to email body:

    strMsg = strMsg & rs!Status & vbCrLf & Chr(9) & "CR " & rs!CRNumbers & " - " & rs![ChangeRequested] & vbCrLf

    I need to keep the email body in plain text. Is there a way to convert back to plain text from rich text?



    Do I need to yse a replace command?

    Thanks

  2. #2
    Micron is online now Virtually Inert Person
    Windows 7 32bit Access 2007
    Join Date
    Jun 2014
    Location
    Ontario, Canada
    Posts
    12,789
    I'm not sure if everyone can see the answers at this site (I can, but something tells me not everyone can). I hesitate to just plagiarize it.
    https://www.experts-exchange.com/que...emo-field.html

  3. #3
    Thompyt is offline Expert
    Windows 8 Access 2010 32bit
    Join Date
    Sep 2014
    Location
    El Paso, TX
    Posts
    839
    Thanks Micron,
    I used the PlainText() for the email. I am still working the excel issue now. Thanks for the link.

Please reply to this thread with any new information or opinions.

Similar Threads

  1. Replies: 4
    Last Post: 08-07-2015, 07:49 AM
  2. create default rich text in text box
    By enemydr in forum Forms
    Replies: 7
    Last Post: 02-19-2014, 09:38 PM
  3. How to Export Rich Text Data into Excel
    By EddieN1 in forum Import/Export Data
    Replies: 2
    Last Post: 11-21-2013, 01:45 PM
  4. Rich text - text color and size
    By Subs in forum Reports
    Replies: 3
    Last Post: 11-08-2013, 10:36 AM
  5. Replies: 1
    Last Post: 05-24-2012, 04:59 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Other Forums: Microsoft Office Forums