+ Reply to Thread
Results 1 to 5 of 5

Dynamic Range selection Text to columns

  1. #1
    Registered User
    Join Date
    12-24-2012
    Location
    Bangalore
    MS-Off Ver
    Excel 2007
    Posts
    99

    Question Dynamic Range selection Text to columns

    Can anyone help with dynamic range selection while performing text to columns? I have the following macro generated to acheive the same:

    Please Login or Register  to view this content.
    To illustrate further, for example if have a column with delimited values (in which ever column in the worksheet):

    Column A
    a_b_c
    a_c_d
    b_c_d
    c_d_e

    Output:

    Column A Column B Column C
    a b c
    a c d
    b c d
    c d e


    I need to be able to select the Range wherever i need in the worksheet and convert text to columns. Possibly a inputbox where i can provide my Range selection. I dont want to hardcode my Range selection like we did in the above macro:

    Selection.TextToColumns Destination:=Range("A4")


    Thanks in advance!

  2. #2
    Forum Guru :) Sixthsense :)'s Avatar
    Join Date
    01-01-2012
    Location
    India>Tamilnadu>Chennai
    MS-Off Ver
    2003 To 2010
    Posts
    12,788

    Re: Dynamic Range selection Text to columns

    Try like this...

    Please Login or Register  to view this content.


    If your problem is solved, then please mark the thread as SOLVED>>Above your first post>>Thread Tools>>
    Mark your thread as Solved


    If the suggestion helps you, then Click *below to Add Reputation

  3. #3
    Registered User
    Join Date
    12-24-2012
    Location
    Bangalore
    MS-Off Ver
    Excel 2007
    Posts
    99

    Re: Dynamic Range selection Text to columns

    Awesome! Thanks again Sixth Sense!

  4. #4
    Forum Guru :) Sixthsense :)'s Avatar
    Join Date
    01-01-2012
    Location
    India>Tamilnadu>Chennai
    MS-Off Ver
    2003 To 2010
    Posts
    12,788

    Re: Dynamic Range selection Text to columns

    Glad it helps you and thanks for the feedback

  5. #5
    Registered User
    Join Date
    12-24-2012
    Location
    Bangalore
    MS-Off Ver
    Excel 2007
    Posts
    99

    Re: Dynamic Range selection Text to columns

    I really liked your idea of selecting Range via inputbox

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

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