+ Reply to Thread
Results 1 to 11 of 11

Copying from Word To Gmail Adds Weird Characters

  1. #1
    Forum Contributor amartinez988's Avatar
    Join Date
    05-04-2015
    Location
    Miami
    MS-Off Ver
    Office 2010
    Posts
    183

    Copying from Word To Gmail Adds Weird Characters

    I have a VBA Program (in MS Access) that creates a Word Document and add data into it. It works as expected, no issues here. The problem comes when copying the data and pasting it in the Gmail, it add weird characters at the end.

    IH89l.png

    And of course that's not how it looks in the Word Document.

    xMgNZ.png

    It doesn't matter what part I copy, it always add the characters at the end.

    8cK6D.png

    0LIz5.png

    I have tried changing different settings in Word, check the string that I'm copying from VBA and nothing seems to work. Of course, copying into Notepad and then to Gmail is not option because it looses the formatting. Neither is an option set the formatting in Gmail to Text because it looses the standard.

    Do you guys have an idea on how to solve this issue? I have seen different posts and I don't find a good solution. Maybe there's no solution after all.
    1 Or 0, that is the question.

  2. #2
    Administrator 6StringJazzer's Avatar
    Join Date
    01-27-2010
    Location
    Tysons Corner, VA, USA
    MS-Off Ver
    MS365 Family 64-bit
    Posts
    24,721

    Re: Copying from Word To Gmail Adds Weird Characters

    Not enough information here to do much troubleshooting. Are you copying and pasting manually, or is this done in your VBA? Does the same thing happen if you paste it into a different app, like a different Word document, Excel, or an Outlook email body? Can you attach a sample Word document that causes this? Can you provide the VBA code that creates the Word document?
    Jeff
    | | |會 |會 |會 |會 | |:| | |會 |會
    Read the rules
    Use code tags to [code]enclose your code![/code]

  3. #3
    Forum Expert
    Join Date
    11-22-2016
    Location
    Cornwall,UK
    MS-Off Ver
    office 365
    Posts
    4,240

    Re: Copying from Word To Gmail Adds Weird Characters

    this has been cross posted here


    From forum rules
    8. Don't cross-post without a link. Cross-posting is when you post the same question in other forums on the web. You'll find people are disinclined to respond to cross-posts because they may be wasting their time solving a problem that has been solved elsewhere. We prefer that you not cross-post at all, but if you do (and it's unlikely to go unnoticed), you MUST provide a link (copy the url from the address bar in your browser) to the cross-post. Expect cross-posts without a link to be closed.
    Last edited by kev_; 03-09-2018 at 11:18 AM.
    Click *Add Reputation to thank those who helped you. Ask if anything is not clear

  4. #4
    Administrator 6StringJazzer's Avatar
    Join Date
    01-27-2010
    Location
    Tysons Corner, VA, USA
    MS-Off Ver
    MS365 Family 64-bit
    Posts
    24,721

    Re: Copying from Word To Gmail Adds Weird Characters

    amartinez988, you have enough experience here to know the rules. Thanks to kev_ for pointing this out and also for providing the link.

    Please take the time to review our rules. There aren't many, and they are all important.

  5. #5
    Forum Contributor amartinez988's Avatar
    Join Date
    05-04-2015
    Location
    Miami
    MS-Off Ver
    Office 2010
    Posts
    183

    Re: Copying from Word To Gmail Adds Weird Characters

    No one gave me a solution in the other forum guys so that's why I posted here. Sorry about that.

  6. #6
    Forum Contributor amartinez988's Avatar
    Join Date
    05-04-2015
    Location
    Miami
    MS-Off Ver
    Office 2010
    Posts
    183

    Re: Copying from Word To Gmail Adds Weird Characters

    And yes, I'm manually copying from word and pasting it into Gmail. First thing I thought was that my code have and special character at then that was being replaced with this weird symbols but no. It wasn't anything after the last letter. To make sure, I copied until the middle the string leaving the last outside and still added the weird characters at the end. I'm pretty sure it's not a code problem. It seems to be a compatibility problem between MS Word and HTML (Gmail).

  7. #7
    Forum Expert
    Join Date
    11-22-2016
    Location
    Cornwall,UK
    MS-Off Ver
    office 365
    Posts
    4,240

    Re: Copying from Word To Gmail Adds Weird Characters

    Please test this

    Create a NEW word document manually - keep it simple - type a sentence - copy and paste some of it into gmail - does it still add funny characters?

    (I do this without any problems)

  8. #8
    Forum Contributor amartinez988's Avatar
    Join Date
    05-04-2015
    Location
    Miami
    MS-Off Ver
    Office 2010
    Posts
    183

    Re: Copying from Word To Gmail Adds Weird Characters

    First 2 times it pasted it perfectly, third time the symbols came back again.

    2018-03-09 11_12_20-Inbox - [email protected] - CV Advisors Mail.png

  9. #9
    Forum Expert
    Join Date
    11-22-2016
    Location
    Cornwall,UK
    MS-Off Ver
    office 365
    Posts
    4,240

    Re: Copying from Word To Gmail Adds Weird Characters

    Ok we are getting somewhere (hopefully )

    What are you pasting that is different in the 3rd test?
    - something is triggering the funny characters (may be more than one thing)
    - if you can establish that then perhaps it can be eliminated

    Create the simplest document that does not cause funny characters and save it - keep going back to this for EVERY test - no combo tests

    Test a few scenarios and report back
    If ONLY text and numbers do you get funny characters even if 1000 characters.. (I expect this to always work without funny characters because I do not have any problems when I do this even with 1000 characters)
    Add paragraphs..
    Add a table etc do you get funny characters...
    Add header
    Add footer
    Test for EVERYTHING that is in the document created by your VBA

    Word formatting may be the problem
    Go back to letter and numbers
    apply each format being applied by VBA ONE by ONE and test

    The solution is to determine exactly what is triggering the problem and then prevent VBA from introducing it
    - you said in post#1 that the VBA is creating this document - so VBA can be told to behave differently
    Last edited by kev_; 03-09-2018 at 12:41 PM.

  10. #10
    Administrator 6StringJazzer's Avatar
    Join Date
    01-27-2010
    Location
    Tysons Corner, VA, USA
    MS-Off Ver
    MS365 Family 64-bit
    Posts
    24,721

    Re: Copying from Word To Gmail Adds Weird Characters

    I cannot reproduce this in my Gmail account. Can you please provide a Word document that causes this problem and specify exactly which text you are copying? There is no reason to rule out a code problem, so I'll ask again for you to provide your code.

    Quote Originally Posted by amartinez988 View Post
    No one gave me a solution in the other forum guys so that's why I posted here. Sorry about that.
    It's fine to post in multiple places, but you need to provide a link to the other places. Most other forums have the same rule (I don't know about Stack Overflow). This is described very clearly in the rules, which everyone should read.

  11. #11
    Forum Expert macropod's Avatar
    Join Date
    12-22-2011
    Location
    Canberra, Australia
    MS-Off Ver
    Word, Excel & Powerpoint 2003 & 2010
    Posts
    3,726

    Re: Copying from Word To Gmail Adds Weird Characters

    Quote Originally Posted by amartinez988 View Post
    No one gave me a solution in the other forum guys so that's why I posted here. Sorry about that.
    That ignores the advice you were given there but dismissed out of hand:
    Without seeing your code and a sample of the actual content you're trying to copy, it's impossible to diagnose the issue.
    Cheers,
    Paul Edstein
    [Fmr MS MVP - Word]

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Replies: 0
    Last Post: 05-16-2014, 11:07 AM
  2. Copying worksheet with images in gmail
    By shaileshgoyal in forum Excel General
    Replies: 0
    Last Post: 04-03-2014, 03:50 AM
  3. Macro that adds alpha characters to duplicates
    By terreese in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 03-23-2013, 01:17 PM
  4. Mail merge from excel - weird characters coming up...
    By jen2412 in forum Word Formatting & General
    Replies: 4
    Last Post: 08-01-2012, 06:33 PM
  5. Replies: 2
    Last Post: 12-14-2010, 10:20 AM
  6. Weird characters at beginning of cell
    By jdelcour in forum Excel General
    Replies: 3
    Last Post: 07-18-2006, 01:55 PM
  7. Weird characters
    By shaun in forum Excel General
    Replies: 0
    Last Post: 03-14-2005, 04:07 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1