+ Reply to Thread
Results 1 to 3 of 3

Separate text and keep it in text format

  1. #1
    Registered User
    Join Date
    02-08-2019
    Location
    Denmark
    MS-Off Ver
    14.0.7228.5001
    Posts
    1

    Separate text and keep it in text format

    Hey all
    I have found this code online that helps me a lot with my work but when using it I found a problem with it. The code is meant to split text to max 16 characters per string and continue it in the next column. The small problem I have is that it sometimes turns some of the new strings into dates instead of keeping in a text format. Do anyone of you have a fix to this?

    On in the file, the different sheets have a wrong(1), a right(2) and before macro(3).
    Attached Files Attached Files
    Last edited by nicolaj.juul; 02-09-2019 at 02:35 PM.

  2. #2
    Forum Expert CK76's Avatar
    Join Date
    06-16-2015
    Location
    ONT, Canada
    MS-Off Ver
    MS365 Apps for enterprise
    Posts
    5,973

    Re: A cherry on top for this code

    Change last part of code to something like...
    Please Login or Register  to view this content.
    Note: Array(1, 2), First part means column#, 2nd part means data type, 2 = Text.
    "Progress isn't made by early risers. It's made by lazy men trying to find easier ways to do something."
    ― Robert A. Heinlein

  3. #3
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    53,048

    Re: A cherry on top for this code

    Hi, welcome to the forum, and thanks for the title change
    Last edited by FDibbins; 02-09-2019 at 04:58 PM.
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

+ 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] Need help with VBA code. Tons of code seperated in two, second part of code doesn't work.
    By FragaGeddon in forum Excel Programming / VBA / Macros
    Replies: 20
    Last Post: 11-30-2015, 11:46 AM
  2. [SOLVED] Pattern Building VBA Code - Working code, would like to use cleaner code
    By Benisato in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 02-10-2015, 03:05 PM
  3. [SOLVED] Excel VB code. Message pops up while code running asking question. Code must not wait.
    By Heinrich Venter in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 09-28-2014, 06:10 AM
  4. [SOLVED] VBA code for assigning a numeric code to text; then numeric code populates table
    By cteaster in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 05-14-2014, 08:01 PM
  5. cherry mae here!
    By larvitar in forum Hello..Introduce yourself
    Replies: 2
    Last Post: 06-04-2012, 02:05 AM
  6. Macro for...If column C equals "Cherry", copy and paste it to column E
    By duugg in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 03-24-2009, 05:34 PM

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