+ Reply to Thread
Results 1 to 5 of 5

pasting text from notepad not appearing in excel

  1. #1
    Forum Contributor
    Join Date
    04-23-2012
    Location
    Chicago, IL
    MS-Off Ver
    Excel 2013
    Posts
    116

    pasting text from notepad not appearing in excel

    Hi,

    I have a program that extracts variable names from text that I paste into excel from various .txt files. The macro works fine, but I am noticing that certain text that ends with [ "] is not being pasted into excel correctly. For instance, the following lines do not paste correctly into excel.

    748 13: D7G.rcad5 "Hat 4 Box: xxxxxx x2 "
    749 13: D7G.rcad6 "Hat 4 Box: xxxx 2 xxx "
    750 13: D7G.rcad7 "Hat 4 Box: xxxxxxxx xxx "

    It seems to have something to do with the tab" at the end of the line (If I delete the tab everything pastes OK into excel). Are there settings in excel I can change so that this pastes accurately?

  2. #2
    Forum Contributor
    Join Date
    04-23-2012
    Location
    Chicago, IL
    MS-Off Ver
    Excel 2013
    Posts
    116

    Re: pasting text from notepad not appearing in excel

    Something is odd with how this posted, if you highlight the three row example, paste it into notepad, then paste it into excel you will see my problem

  3. #3
    Forum Guru
    Join Date
    03-02-2006
    Location
    Los Angeles, Ca
    MS-Off Ver
    WinXP/MSO2007;Win10/MSO2016
    Posts
    12,613

    Re: pasting text from notepad not appearing in excel

    I pasted those lines into XL2007 and it looks the same as the post text. Maybe you should post the code.
    Ben Van Johnson

  4. #4
    Forum Contributor
    Join Date
    04-23-2012
    Location
    Chicago, IL
    MS-Off Ver
    Excel 2013
    Posts
    116

    Re: pasting text from notepad not appearing in excel

    Quote Originally Posted by protonLeah View Post
    I pasted those lines into XL2007 and it looks the same as the post text. Maybe you should post the code.
    Right, did you try pasting it into notepad, then into excel? that seems to show the problem. There isn't any code for this, I am manually pasting text from notepad into excel.

  5. #5
    Forum Guru
    Join Date
    03-02-2006
    Location
    Los Angeles, Ca
    MS-Off Ver
    WinXP/MSO2007;Win10/MSO2016
    Posts
    12,613

    Re: pasting text from notepad not appearing in excel

    Yes I did. The cells were still formatted as General (default)

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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