+ Reply to Thread
Results 1 to 4 of 4

How to stop macro from treating comma as a new line character while copying for a text fil

  1. #1
    Registered User
    Join Date
    02-26-2013
    Location
    India
    MS-Off Ver
    Excel 2007
    Posts
    12

    How to stop macro from treating comma as a new line character while copying for a text fil

    Hello,

    I have written the below code to copy entire content of any .txt file into a excel sheet. Surprisingly, any comma "," found in the .txt file is being treated as a new line character while pasting in a work sheet. Could someone help me on how to stop the macro from treating a "," as a new line character?

    Please Login or Register  to view this content.

  2. #2
    Forum Expert Debraj Roy's Avatar
    Join Date
    09-27-2012
    Location
    New Delhi,India
    MS-Off Ver
    Excel 2013
    Posts
    1,469

    Re: How to stop macro from treating comma as a new line character while copying for a text

    Try this..

    Please Login or Register  to view this content.
    Line Input is the syntax, in case you want to delimiter as line.
    Regards!
    =DEC2HEX(3563)

    If you like someone's answer, click the star to give them a reputation point for that answer...

  3. #3
    Registered User
    Join Date
    02-26-2013
    Location
    India
    MS-Off Ver
    Excel 2007
    Posts
    12

    Re: How to stop macro from treating comma as a new line character while copying for a text

    It worked! Thanks!

  4. #4
    Forum Expert Debraj Roy's Avatar
    Join Date
    09-27-2012
    Location
    New Delhi,India
    MS-Off Ver
    Excel 2013
    Posts
    1,469

    Re: How to stop macro from treating comma as a new line character while copying for a text

    Thanks for the feedback..

+ 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: 4
    Last Post: 07-25-2013, 05:28 AM
  2. [SOLVED] If comma present, then place a character before and after comma (FORMULA)
    By jaimealvarez in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 06-21-2012, 04:04 PM
  3. Line Graph: Treating multiple entries for the same date as a sum?
    By chaz76vette in forum Excel Charting & Pivots
    Replies: 3
    Last Post: 05-07-2012, 11:24 AM
  4. Macro to find character and delete all text in cell after the character
    By SpencerRichman in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 02-01-2012, 06:08 PM
  5. [SOLVED] How do I stop Excel from treating blank cells as zero?
    By Michael Gillie in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 09-13-2005, 07:06 AM

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