Results 1 to 5 of 5
  1. #1
    EddieN1 is offline Competent Performer
    Windows XP Access 2007
    Join Date
    May 2011
    Posts
    313

    Exporting Query with rtf Fields to Excel

    I want to export a query that contains fields with rtf data, such as...



    <div><strong>this is some text</strong></div> which is interpreted as... this is some text

    and have it appear as rtf data in Excel. Any ideas? Thanks, Eddie

  2. #2
    rpeare is offline VIP
    Windows XP Access 2003
    Join Date
    Jul 2011
    Posts
    5,442
    are some of the format condition dependent on what's in the cell? or are we talking about an entire column or row being formatted a certain way? Does the resultant excel file have the same number of rows/columns each time or is it variable?

  3. #3
    EddieN1 is offline Competent Performer
    Windows XP Access 2007
    Join Date
    May 2011
    Posts
    313
    Yes and No... almost every cell has HTML code in it. In Access I designate the text box (cell) with a Format of Rich Text and the bold, underline, etc. shows. I don't have the equivalent option in Excel, however, it seems that it's always available anyway, but the code is hidden from me. Is there anything I can do to get Excel to interpret and act on the embedded HTML code?

  4. #4
    June7's Avatar
    June7 is offline VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,930
    Apparently not. Requires code. Review http://social.msdn.microsoft.com/For...c-0c85eeb2cb2a
    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.

  5. #5
    rpeare is offline VIP
    Windows XP Access 2003
    Join Date
    Jul 2011
    Posts
    5,442
    You didn't really answer the question though.


    If you are exporting information in the same layout (or generally so) every time you can have a 'template' excel file, you can programatically export data to that template then save the template as a new file with all the formatting already in place more easily than exporting to an excel file cell by cell to deal with special formatting.

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

Similar Threads

  1. Exporting query to Excel. Almost there
    By Wombat in forum Import/Export Data
    Replies: 13
    Last Post: 04-10-2012, 01:38 PM
  2. Exporting a Query to Excel
    By tcheck in forum Access
    Replies: 3
    Last Post: 07-22-2011, 05:00 PM
  3. Query Exporting to Excel
    By Coffee in forum Queries
    Replies: 2
    Last Post: 07-18-2011, 07:42 AM
  4. Exporting Query to Excel
    By jvera524 in forum Import/Export Data
    Replies: 0
    Last Post: 12-06-2010, 09:16 AM
  5. Replies: 0
    Last Post: 06-05-2009, 10:47 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