+ Reply to Thread
Results 1 to 2 of 2

Remove the paragraph space.

Hybrid View

  1. #1
    Registered User
    Join Date
    04-24-2004
    Location
    INDIA
    MS-Off Ver
    2013
    Posts
    70

    Question Remove the paragraph space.

    i have typed 2-3 lines in a cell using Alt+Enter.

    How I can remove this paragraph space as there are many cells like this.

    Please help.

    Thanks in anticipation.

    s karan

  2. #2
    Registered User
    Join Date
    01-20-2004
    Location
    Western NY
    Posts
    99
    open the Visual Basic Editor and add the macro below to a code module.
    Select the cells where you wish to remove the Alt+Enter
    execute the macro

    Sub ReplaceSelection()
    
        Dim xlCell As Range
    
        For Each xlCell In Selection
            MsgBox xlCell.Text
            xlCell = Replace(xlCell.Text, Chr(10), " ")
        Next xlCell
        
    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