+ Reply to Thread
Results 1 to 13 of 13

VBA: Wrapping text and transversing text between nubers or given speific text

  1. #1
    Forum Contributor
    Join Date
    05-01-2013
    Location
    IND
    MS-Off Ver
    Excel 2007
    Posts
    130

    VBA: Wrapping text and transversing text between nubers or given speific text

    I am looking for a VBA solution for
    1. transversed text and
    2. Wrapping text
    between numbers or after and before numbers or given specific text in between. Please find the attachment. My actual row is 1000 rows.
    Attached Files Attached Files

  2. #2
    Forum Contributor
    Join Date
    05-01-2013
    Location
    IND
    MS-Off Ver
    Excel 2007
    Posts
    130

    Re: VBA: Wrapping text and transversing text between nubers or given speific text

    I know its the most easiest but ...

  3. #3
    Forum Expert nilem's Avatar
    Join Date
    10-22-2011
    Location
    Ufa, Russia
    MS-Off Ver
    2013
    Posts
    3,377

    Re: VBA: Wrapping text and transversing text between nubers or given speific text

    maybe
    Please Login or Register  to view this content.
    Please Login or Register  to view this content.

  4. #4
    Forum Contributor
    Join Date
    05-01-2013
    Location
    IND
    MS-Off Ver
    Excel 2007
    Posts
    130

    Re: VBA: Wrapping text and transversing text between nubers or given speific text

    If there is no blank rows in between data, it is transposing all
    Can't we transpose data under each numeric number (or given text) I think it can work without blank rows then.

  5. #5
    Forum Expert nilem's Avatar
    Join Date
    10-22-2011
    Location
    Ufa, Russia
    MS-Off Ver
    2013
    Posts
    3,377

    Re: VBA: Wrapping text and transversing text between nubers or given speific text

    try it
    Please Login or Register  to view this content.
    Please Login or Register  to view this content.

  6. #6
    Forum Contributor
    Join Date
    05-01-2013
    Location
    IND
    MS-Off Ver
    Excel 2007
    Posts
    130

    Re: VBA: Wrapping text and transversing text between nubers or given speific text

    The transverse is not working
    1. if I am have only numbers 1, 2, 3, 4, .......
    2. If I have text with numbers in between 1, 2, 3, 4, ....... (1 above)

  7. #7
    Forum Guru
    Join Date
    08-15-2004
    Location
    Tokyo, Japan
    MS-Off Ver
    2013 O.365
    Posts
    22,524

    Re: VBA: Wrapping text and transversing text between nubers or given speific text

    This should do
    Please Login or Register  to view this content.

  8. #8
    Forum Contributor
    Join Date
    05-01-2013
    Location
    IND
    MS-Off Ver
    Excel 2007
    Posts
    130

    Re: VBA: Wrapping text and transversing text between nubers or given speific text

    This line is giving problem: .Cells(1, 3).Value = Join(Application.Transpose(.Value), vbLf)

    I have got errors where my rows are as
    1
    1a
    bb2
    2
    2a
    3ab
    rrr
    sss

    After transpose the result aswell should be
    1 1a bb2
    2 2a 3ab rrr sss

  9. #9
    Forum Guru
    Join Date
    08-15-2004
    Location
    Tokyo, Japan
    MS-Off Ver
    2013 O.365
    Posts
    22,524

    Re: VBA: Wrapping text and transversing text between nubers or given speific text

    If you are talking about the file I don't see, forget about the code.

  10. #10
    Forum Contributor
    Join Date
    05-01-2013
    Location
    IND
    MS-Off Ver
    Excel 2007
    Posts
    130

    Re: VBA: Wrapping text and transversing text between nubers or given speific text

    out of Curiosity I thought about changed input.

  11. #11
    Forum Expert
    Join Date
    08-16-2015
    Location
    Antwerpen, Belgium
    MS-Off Ver
    2007-2016
    Posts
    2,380

    Re: VBA: Wrapping text and transversing text between nubers or given speific text

    Can this one help ?



    Kind regards
    Leo
    Attached Files Attached Files

  12. #12
    Forum Expert
    Join Date
    08-16-2015
    Location
    Antwerpen, Belgium
    MS-Off Ver
    2007-2016
    Posts
    2,380

    Re: VBA: Wrapping text and transversing text between nubers or given speific text

    Or maybe this, works with or without empty rows


    Kind regards
    Leo
    Attached Files Attached Files

  13. #13
    Forum Guru
    Join Date
    08-15-2004
    Location
    Tokyo, Japan
    MS-Off Ver
    2013 O.365
    Posts
    22,524

    Re: VBA: Wrapping text and transversing text between nubers or given speific text

    Quote Originally Posted by sroysroy View Post
    This line is giving problem: .Cells(1, 3).Value = Join(Application.Transpose(.Value), vbLf)

    I have got errors where my rows are as
    1
    1a
    bb2
    2
    2a
    3ab
    rrr
    sss

    After transpose the result aswell should be
    1 1a bb2
    2 2a 3ab rrr sss
    I don't believe this at all!

    See
    Waht are you talking about.xlsm

+ 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. Wrap Text without Wrapping Text
    By manthux in forum Excel Programming / VBA / Macros
    Replies: 11
    Last Post: 07-07-2013, 03:33 PM
  2. Text Wrapping
    By Davidns in forum Excel General
    Replies: 1
    Last Post: 04-12-2013, 05:07 PM
  3. problem with text wrapping long text
    By TechRetard in forum Excel General
    Replies: 5
    Last Post: 03-14-2011, 03:05 PM
  4. Replies: 2
    Last Post: 05-06-2006, 01:15 PM
  5. Text Wrapping
    By RhondaRoo in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 02-17-2006, 10:40 PM
  6. RE: Text Wrapping
    By JMB in forum Excel General
    Replies: 0
    Last Post: 07-28-2005, 10:05 PM
  7. Wrapping Text
    By lisacollins in forum Excel General
    Replies: 1
    Last Post: 01-28-2005, 11:18 AM
  8. wrapping text
    By lisacollins in forum Excel General
    Replies: 0
    Last Post: 01-27-2005, 03:34 PM

Tags for this Thread

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