• AscII Characters (97)

    Author
    Topic
    #398150

    I have a .csv format file, which I am exporting from Access 97. Two of the fields are memo fields in Access and transfer with AScII characters (little square) for returns. How do I get rid of them prior to sending the file? Many thanks.

    Blitz

    Viewing 1 reply thread
    Author
    Replies
    • #759066

      Hi Blitz,

      Before getting rid of them, you might try formatting the cells these fields go into as wrapped text. This may restore the original memo field formatting in your workbook.

      Alternatively, if you need to get rid of them, then open the workbook and try doing a Search/Replace, typing Alt-010 into the ‘Find what’ box and nothing in the ‘Replace with’ box.

      Cheers

      Cheers,
      Paul Edstein
      [Fmr MS MVP - Word]

      • #759068

        Hi thanks for the response – the transfer already seems to generate wrapped text. I have tried doing Alt 010 and Alt-010, with both the Alt key held down and released. It just seems to put a numeric value of “10” in, and nothing happens. I’m sure this is me making an ID 1 0T error (!) – what am I doing wrong?? Thanks Blitz

        • #759074

          You hold down the alt key and type 010 on your numeric keypad. Then release the alt key. You’ll see nothing in the find box, but don’t worry, it will work.

        • #759075

          You hold down the alt key and type 010 on your numeric keypad. Then release the alt key. You’ll see nothing in the find box, but don’t worry, it will work.

        • #759078

          Pressing Alt+0010 will do the trick for the Line Feed character, but I don’t know how to do it for Carriage Return; Alt+0013 doesn’t work. Try this instead:

          – Activate the Visual Basic Editor (Alt+F11)
          – Activate the Immediate window (Ctrl+G)
          – Type ActiveSheet.UsedRange.Replace vbCrLf, ” “ then press Enter.
          – Switch back to Excel

          If you need to replace only carriage returns or line feeds, you can use vbCr or vbLf instead of vbCrLf. And if you need to do this often, you can store the above instruction in a macro in a general module.

          Sub Returns2Spaces()
          ActiveSheet.UsedRange.Replace vbCrLf, ” ”
          End Sub

          • #759082

            Thanks folks! I’ll try this lot out.

            Regards. Blitz

          • #759083

            Thanks folks! I’ll try this lot out.

            Regards. Blitz

        • #759079

          Pressing Alt+0010 will do the trick for the Line Feed character, but I don’t know how to do it for Carriage Return; Alt+0013 doesn’t work. Try this instead:

          – Activate the Visual Basic Editor (Alt+F11)
          – Activate the Immediate window (Ctrl+G)
          – Type ActiveSheet.UsedRange.Replace vbCrLf, ” “ then press Enter.
          – Switch back to Excel

          If you need to replace only carriage returns or line feeds, you can use vbCr or vbLf instead of vbCrLf. And if you need to do this often, you can store the above instruction in a macro in a general module.

          Sub Returns2Spaces()
          ActiveSheet.UsedRange.Replace vbCrLf, ” ”
          End Sub

      • #759069

        Hi thanks for the response – the transfer already seems to generate wrapped text. I have tried doing Alt 010 and Alt-010, with both the Alt key held down and released. It just seems to put a numeric value of “10” in, and nothing happens. I’m sure this is me making an ID 1 0T error (!) – what am I doing wrong?? Thanks Blitz

    • #759067

      Hi Blitz,

      Before getting rid of them, you might try formatting the cells these fields go into as wrapped text. This may restore the original memo field formatting in your workbook.

      Alternatively, if you need to get rid of them, then open the workbook and try doing a Search/Replace, typing Alt-010 into the ‘Find what’ box and nothing in the ‘Replace with’ box.

      Cheers

      Cheers,
      Paul Edstein
      [Fmr MS MVP - Word]

    Viewing 1 reply thread
    Reply To: AscII Characters (97)

    You can use BBCodes to format your content.
    Your account can't use all available BBCodes, they will be stripped before saving.

    Your information: