+ Reply to Thread
Results 1 to 6 of 6

VBA to Automate the Delimiter

  1. #1
    Registered User
    Join Date
    08-11-2021
    Location
    Groveton, New Hampshire
    MS-Off Ver
    2019
    Posts
    4

    Question VBA to Automate the Delimiter

    I'm attempting to find a solution using VBA to automate the delimiter and I've scoured the forums and internet to no resolve and was hoping I may be able to find an answer here. Right now I am having excel generate a barcode in the example format of "11D*122*1", each identifying number is split by the asterisk(11D 122 1). Then in the next process an end user will scan that barcode into the B4 field. Each number will change when a scan is entered into cell B4. Right now I am doing text to cell function so that it breaks it down and separates them in cells Z4:AB4 but I am looking for a way to automatically do this as this process will be for end users. Trying to find a way to do this that as soon as the data is entered it separates it without having to use a macro button or a formula as formulas within the cells are not carrying over any conditional formatting. Any help is appreciated and again thank you.

  2. #2
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,457

    Re: VBA to Automate the Delimiter

    Trying to find a way to do this that as soon as the data is entered it separates it without having to use a macro button
    You would need to use a Worksheet Change Event handler to monitor the input column and undertake the Text to Columns when an entry is made.
    Trevor Shuttleworth - Retired Excel/VBA Consultant

    I dream of a better world where chickens can cross the road without having their motives questioned

    'Being unapologetic means never having to say you're sorry' John Cooper Clarke


  3. #3
    Forum Expert torachan's Avatar
    Join Date
    12-27-2012
    Location
    market harborough, england
    MS-Off Ver
    Excel 2010
    Posts
    4,304

    Re: VBA to Automate the Delimiter

    place the code in the worksheet module.

    Please Login or Register  to view this content.
    Torachan,

    Mission statement; Promote the use of Tables, Outlaw the use of 'merged cells' and 'RowSource'.

  4. #4
    Registered User
    Join Date
    08-11-2021
    Location
    Groveton, New Hampshire
    MS-Off Ver
    2019
    Posts
    4

    Re: VBA to Automate the Delimiter

    You my friend are amazing! I've been banging my head on this one for a couple days now trying to automate this as smoothly as possible without the use of a button. Thank you so much!

  5. #5
    Administrator 6StringJazzer's Avatar
    Join Date
    01-27-2010
    Location
    Tysons Corner, VA, USA
    MS-Off Ver
    MS365 Family 64-bit
    Posts
    24,721

    Re: VBA to Automate the Delimiter

    Administrative Note:

    Welcome to the forum.

    We would very much like to help you with your query, however it has been brought to our attention that the same query has been posted on one or more other forums and you have not provided the required cross-post link(s) here.

    Please see Forum Rule #3 about cross-posting and adjust accordingly. Read this to understand why we (and other sites like us) consider this to be important.

    (Note: this requirement is not optional. No help to be offered until the link is provided.)
    Jeff
    | | |會 |會 |會 |會 | |:| | |會 |會
    Read the rules
    Use code tags to [code]enclose your code![/code]

  6. #6
    Registered User
    Join Date
    08-11-2021
    Location
    Groveton, New Hampshire
    MS-Off Ver
    2019
    Posts
    4

    Re: VBA to Automate the Delimiter

    yes, sorry the link to the cross post was posted in the Mr.Excel forum board, I used a collaboration of both VBAs to get the desired effect thank you for time and help.
    However your rules contradict themselves, it does not allow me to post a link as I have not posted enough, and I get an error when trying to post any link. I would have posted the link but it will not let me.

+ 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] Take cell value spit on delimiter SORT the ensuing array then Join on delimiter post back
    By capson in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 02-05-2016, 03:54 PM
  2. how to get sub strings using delimiter
    By abhimaan in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 05-31-2012, 10:31 AM
  3. Count the | delimiter
    By [email protected] in forum Excel General
    Replies: 2
    Last Post: 02-23-2012, 06:07 PM
  4. Keep the delimiter
    By julianbro in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 11-01-2011, 05:10 AM
  5. delimiter formula
    By venkatatcts in forum Excel General
    Replies: 1
    Last Post: 06-15-2011, 08:27 AM
  6. Tab Delimiter File
    By moonwalker in forum Excel General
    Replies: 7
    Last Post: 02-24-2006, 11:56 AM
  7. removal of delimiter
    By raja in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 09-20-2005, 09:05 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