+ Reply to Thread
Results 1 to 4 of 4

Excel 2007 : Pasting Data from excel to textbox has newline attached

Hybrid View

  1. #1
    Registered User
    Join Date
    02-23-2011
    Location
    Austin, Texas
    MS-Off Ver
    Excel 2007
    Posts
    2

    Pasting Data from excel to textbox has newline attached

    This appears to be a design issue in excel, when you multi select a column or data set, it is going to separate each cell by a newline so that it will paste neatly into another table.

    This is an issue because I have a data lookup tool, when i sort out data and copy and paste into the program, there is a little space (represents the newline I assume) attached to the end of the data that I have to manually remove each time. There is no "space" in the excel data if i double click the data. I think this is simply just attached to the cell data I believe as a normal function of excel.

    I'm curious if there is any setting I change in excel or any code I can run to have it only copy the cell data minus the newline?

  2. #2
    Forum Guru MarvinP's Avatar
    Join Date
    07-23-2010
    Location
    Woodinville, WA
    MS-Off Ver
    Office 365
    Posts
    16,333

    Re: Pasting Data from excel to textbox has newline attached

    Hi TimeVampire and welcome to the forum,

    I hope you aren't sucking my time away without having a real question or problem.

    To text your assumption of the last character being a NewLine, pull it into Word and turn paragraph marks on. Click on the backward P character in word. This will show what character it really is.

    That will be a start for figuring out your problem.
    One test is worth a thousand opinions.
    Click the * Add Reputation below to say thanks.

  3. #3
    Registered User
    Join Date
    02-23-2011
    Location
    Austin, Texas
    MS-Off Ver
    Excel 2007
    Posts
    2

    Re: Pasting Data from excel to textbox has newline attached

    That appears to the be the case then. I was able to reproduce what you described with the markings. I typed into a blank document "Hello I am a cell" and copied it into word.

    Attached a picture for fun reference. Also thanks for the welcome .
    Attached Images Attached Images

  4. #4
    Forum Guru MarvinP's Avatar
    Join Date
    07-23-2010
    Location
    Woodinville, WA
    MS-Off Ver
    Office 365
    Posts
    16,333

    Re: Pasting Data from excel to textbox has newline attached

    Does this answer your question?

+ 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