+ Reply to Thread
Results 1 to 4 of 4

How to get double quotes to show up after pasting?

  1. #1
    SusanG
    Guest

    How to get double quotes to show up after pasting?

    I need to copy text surrounded by double quotes (for example "example") from
    another application and paste it in Excel. After pasting, the double quotes
    disappear in Excel, while I don't want that. (pasting "example" results in a
    cell showing the word example, while it should be "example").
    Does anyone know how I can set up Excel so that it doesn't manipulate the
    text string and just pasts it exactly as it is copied to the clipboard?
    Appreciate your help.

  2. #2
    tim m
    Guest

    RE: How to get double quotes to show up after pasting?

    Did you try formatting the cells as 'text' before copying the data into excel?

    "SusanG" wrote:

    > I need to copy text surrounded by double quotes (for example "example") from
    > another application and paste it in Excel. After pasting, the double quotes
    > disappear in Excel, while I don't want that. (pasting "example" results in a
    > cell showing the word example, while it should be "example").
    > Does anyone know how I can set up Excel so that it doesn't manipulate the
    > text string and just pasts it exactly as it is copied to the clipboard?
    > Appreciate your help.


  3. #3
    SusanG
    Guest

    RE: How to get double quotes to show up after pasting?

    Yes - it doesn't help.
    The strange thing is copying "example" from a cell in Excel and pasting in
    another cell goes correctly, but pasting from another application Excel
    removes the double quotes. I'm pretty sure Excel does this because pasting in
    another text editor keeps the double quotes which would indicate the quotes
    being there in on the clipboard.
    Thanks for your input.

    "tim m" wrote:

    > Did you try formatting the cells as 'text' before copying the data into excel?
    >
    > "SusanG" wrote:
    >
    > > I need to copy text surrounded by double quotes (for example "example") from
    > > another application and paste it in Excel. After pasting, the double quotes
    > > disappear in Excel, while I don't want that. (pasting "example" results in a
    > > cell showing the word example, while it should be "example").
    > > Does anyone know how I can set up Excel so that it doesn't manipulate the
    > > text string and just pasts it exactly as it is copied to the clipboard?
    > > Appreciate your help.


  4. #4
    Registered User
    Join Date
    03-10-2015
    Location
    Finland
    MS-Off Ver
    2010
    Posts
    2

    Re: How to get double quotes to show up after pasting?

    Hi,

    This occurs due to Text To Columns -settings.
    Change TextQualifier to be xlNone and problem is solved.. Unfortunately, his has to be done every time when you open the Excel.

    Selection.TextToColumns Destination:=Range("E4"), DataType:=xlDelimited, _
    TextQualifier:=xlNone, ConsecutiveDelimiter:=False, Tab:=False, _
    Semicolon:=False, Comma:=False, Space:=False, Other:=False, FieldInfo _
    :=Array(1, 1), TrailingMinusNumbers:=True

    Do it like this and Excel changes the settings every time you open the Excel:

    Private Sub Workbook_Open()
    Dim ggg As Range

    Set ggg = Cells.Find(What:="*", After:=Range("a1"), LookIn:=xlFormulas, LookAt:= _
    xlPart, SearchOrder:=xlByRows, SearchDirection:=xlNext, MatchCase:=False _
    , SearchFormat:=False)
    If ggg Is Nothing Then
    Set ggg = Range("a1")
    ggg.Value = "x"
    ggg.TextToColumns Destination:=ggg, DataType:=xlDelimited, _
    TextQualifier:=xlNone, ConsecutiveDelimiter:=False, Tab:=False, _
    Semicolon:=False, Comma:=False, Space:=False, Other:=False, FieldInfo _
    :=Array(1, 1), TrailingMinusNumbers:=True
    ggg.Value = ""

    Else
    ggg.TextToColumns Destination:=ggg, DataType:=xlDelimited, _
    TextQualifier:=xlNone, ConsecutiveDelimiter:=False, Tab:=False, _
    Semicolon:=False, Comma:=False, Space:=False, Other:=False, FieldInfo _
    :=Array(1, 1), TrailingMinusNumbers:=True
    End If

    End Sub

+ 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