Consulting

Results 1 to 3 of 3

Thread: Remove line breaks

  1. #1
    VBAX Regular mikke3141's Avatar
    Joined
    Jun 2007
    Location
    Klaukkala
    Posts
    53
    Location

    Smile Remove line breaks

    Hello,

    I'm trying to load the attached csv file to excel with vba, but there are hidden page breaks that split the rows. How can I load file so that the page breaks are removed?

    Thank you for your help.
    Attached Files Attached Files

  2. #2
    VBAX Regular
    Joined
    Jul 2013
    Posts
    56
    Location
    Hi..

    What are you expecting as the result..? it is not clear to me.

    For example.. if you use:

    x = Replace(Join(Application.Transpose(Range("A1").CurrentRegion), Chr(12)), Chr(12), "|")
    You will see a string that has all your Page Breaks replaced with the Pipe character.. and that there was a Page break after each cell.. so which ones are the hidden ones that you want removed..?

  3. #3
    VBAX Regular mikke3141's Avatar
    Joined
    Jun 2007
    Location
    Klaukkala
    Posts
    53
    Location
    The page breaks that are in the line end should remain, but those that are inside the row (excel misinterprets them to page breaks) should be removed.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •