+ Reply to Thread
Results 1 to 4 of 4

VBA to set Text-to-columns function back to default

  1. #1
    Forum Contributor
    Join Date
    11-04-2012
    Location
    Australia
    MS-Off Ver
    Excel 2016
    Posts
    334

    VBA to set Text-to-columns function back to default

    Is it possible for VBA to set the Text-to-columns function back to its default values? (i.e Tab delimited)

    Any assistance appreciated.

    Thanks!

  2. #2
    Forum Guru Norie's Avatar
    Join Date
    02-02-2005
    Location
    Stirling, Scotland
    MS-Off Ver
    Microsoft Office 365
    Posts
    19,643

    Re: VBA to set Text-to-columns function back to default

    There isn't really a default, Excel looks at the data and decides whether it's fixed length or delimited and sets the options accordingly.
    If posting code please use code tags, see here.

  3. #3
    Forum Contributor
    Join Date
    11-04-2012
    Location
    Australia
    MS-Off Ver
    Excel 2016
    Posts
    334

    Re: VBA to set Text-to-columns function back to default

    When I choose the delimiter Excel stores that value so next time I paste stuff into Excel it uses that as the delimiter.
    For example if I use "Space" as the delimiter, next time I paste something into excel it pastes using "Space" as a delimiter...even if that is NOT what I want.
    I have to run a dummy text-to-columns to get it back to Tab delimited.
    It is a mega pain in the backside!

  4. #4
    Forum Guru Norie's Avatar
    Join Date
    02-02-2005
    Location
    Stirling, Scotland
    MS-Off Ver
    Microsoft Office 365
    Posts
    19,643

    Re: VBA to set Text-to-columns function back to default

    I know that happens and the only way I know to reset is to do what you are currently doing, run a dummy text-to- columns.

+ 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