+ Reply to Thread
Results 1 to 5 of 5

Wrap text on all columns from D and higher

  1. #1
    Registered User
    Join Date
    08-23-2013
    Location
    Florida, USA
    MS-Off Ver
    Excel 2013
    Posts
    4

    Wrap text on all columns from D and higher

    I have been trying to find a macro that changes all columns wider than 50, to 50, and wrap text.

    I have recorded a macro, but don't know how to start it from column D and only to change columns wider than 50.

    Here's my starting point, but it's just a simple recorded macro.

    Sub Macro1()
    '
    ' Macro1 Macro
    '

    '
    Selection.ColumnWidth = 50
    With Selection
    .HorizontalAlignment = xlLeft
    .VerticalAlignment = xlBottom
    .WrapText = True
    .Orientation = 0
    .AddIndent = False
    .IndentLevel = 0
    .ShrinkToFit = False
    .ReadingOrder = xlContext
    .MergeCells = False
    End With
    End Sub
    thanks
    Last edited by davbran; 01-22-2014 at 05:09 PM.

  2. #2
    Forum Expert Jakobshavn's Avatar
    Join Date
    08-17-2012
    Location
    Lakehurst, NJ, USA
    MS-Off Ver
    Excel 2007
    Posts
    1,970

    Re: Wrap text on all columns from D and higher

    How about:

    Please Login or Register  to view this content.
    Gary's Student

  3. #3
    Registered User
    Join Date
    08-23-2013
    Location
    Florida, USA
    MS-Off Ver
    Excel 2013
    Posts
    4

    Re: Wrap text on all columns from D and higher

    Thanks, mate!

    That's what I was looking for.

    How would I go about that while ignoring columns A-C. I am going to try tweaking it, but want to make sure I get it done correctly.

  4. #4
    Registered User
    Join Date
    08-23-2013
    Location
    Florida, USA
    MS-Off Ver
    Excel 2013
    Posts
    4

    Re: Wrap text on all columns from D and higher

    Ok here's what I changed

    For i = 3 to Columns.Count

    It seems to be starting at column D now.

  5. #5
    Forum Expert Jakobshavn's Avatar
    Join Date
    08-17-2012
    Location
    Lakehurst, NJ, USA
    MS-Off Ver
    Excel 2007
    Posts
    1,970

    Re: Wrap text on all columns from D and higher

    Good job! It is the correct change.

+ 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. [SOLVED] Wrap Text in ListView: how to wrap text in the columns of a list view
    By TommyToe in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 12-05-2012, 07:02 AM
  2. Text wrap and allow cell height to increase with wrap
    By tpenterprize in forum Excel General
    Replies: 1
    Last Post: 10-19-2007, 02:30 PM
  3. Split text like line wrap into multi columns
    By 1scant in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 02-16-2006, 03:53 PM
  4. WRAP a text line over several columns without merging cells
    By Conrad in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 03-22-2005, 05:05 AM
  5. WRAP a text line over several columns without merging cells
    By Conrad S in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 03-22-2005, 01: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