+ Reply to Thread
Results 1 to 8 of 8

Delimiters

Hybrid View

  1. #1
    Registered User
    Join Date
    04-05-2019
    Location
    Australia
    MS-Off Ver
    Office 365
    Posts
    14

    Delimiters

    Hi I have a spreadsheet to work on and a broken macro I’m trying to reverse engineer the macro into steps for my boss. VBA code says

    Split job code to find work order number
    Dim WO As Variant, JobCode As Variant, VarDelim As Variant
    Dim n As Interger
    
    JobCode = ActiveCell
    VarDelim = “,”
    WO = Split(JobCode, VarDelim)
    
    n = 2
    I am in text to columns, selected delimited but am unsure what to do next?

    Any help would be much appreciated!
    Last edited by FDibbins; 04-06-2019 at 12:11 AM.

  2. #2
    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: Delimiters

    Code Tags Added
    Your post does not comply with Rule 2 of our Forum RULES. Use code tags around code.

    Posting code between [CODE] [/CODE] tags makes your code much easier to read and copy for testing, it also maintains VBA formatting.

    Highlight your code and click the # icon at the top of your post window. More information about these and other tags can be found at http://www.excelforum.com/forum-rule...rum-rules.html



    (I have added them for you today. Please take a few minutes to read all Forum Rules and comply in the future.)

    Also, please take a moment to read our rules regarding thread titles
    Last edited by FDibbins; 04-06-2019 at 12:12 AM.
    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

  3. #3
    Forum Expert
    Join Date
    10-06-2008
    Location
    Canada
    MS-Off Ver
    2007 / 2013
    Posts
    5,693

    Re: Delimiters

    It would be oh so nice to have a workbook to work with.
    Attach a sanitized copy of your workbook with before and after showing.
    It needs to be a representative copy.

  4. #4
    Forum Guru bakerman2's Avatar
    Join Date
    10-03-2012
    Location
    Antwerp, Belgium
    MS-Off Ver
    MSO Home and Business 2024
    Posts
    7,338

    Re: Delimiters

    Attach a sample workbook (not a picture or pasted copy). Make sure there is just enough data to demonstrate your need. Include a BEFORE sheet and an AFTER sheet in the workbook if needed to show the process you're trying to complete or automate. Make sure your desired results are shown, mock them up manually if necessary.

    Remember to desensitize the data.

    Click on GO ADVANCED and then scroll down to Manage Attachments to open the upload window.
    Avoid using Select, Selection and Activate in your code. Use With ... End With instead.
    You can show your appreciation for those that have helped you by clicking the * at the bottom left of any of their posts.

  5. #5
    Registered User
    Join Date
    04-05-2019
    Location
    Australia
    MS-Off Ver
    Office 365
    Posts
    14

    Re: Delimiters

    I don’t have remote access to the workbook, I have a complete copy of the macro code and he wants me to work it into manual steps, if I upload the entire code would that help?

  6. #6
    Forum Expert
    Join Date
    10-06-2008
    Location
    Canada
    MS-Off Ver
    2007 / 2013
    Posts
    5,693

    Re: Delimiters

    You can explain what needs to happen. Be concise and to the point. Don't leave anything out.
    Maybe show some data since you need to separate data by the sound of it.

  7. #7
    Registered User
    Join Date
    04-05-2019
    Location
    Australia
    MS-Off Ver
    Office 365
    Posts
    14

    Re: Delimiters

    Attachment 618941

    This keeps coming up when I reply with the code?

  8. #8
    Forum Guru bakerman2's Avatar
    Join Date
    10-03-2012
    Location
    Antwerp, Belgium
    MS-Off Ver
    MSO Home and Business 2024
    Posts
    7,338

    Re: Delimiters

    Copy-Paste the code in the Quick Reply window. Select all the code and click the # icon just above the Quick Reply window.

+ 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] Fixing delimiters
    By SlipEternal in forum Excel Formulas & Functions
    Replies: 10
    Last Post: 02-28-2018, 04:34 PM
  2. vlookup with delimiters
    By karthik013 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 01-29-2014, 11:28 AM
  3. [SOLVED] Extracting a Substring Between Second and Third Delimiters
    By MrGadget6977 in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 09-18-2013, 05:54 PM
  4. Referencing Delimiters
    By Impartial Derivative in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 06-18-2011, 12:07 AM
  5. concatenate and delimiters redux
    By goji in forum Excel General
    Replies: 5
    Last Post: 09-21-2009, 03:27 PM
  6. concatenating w/ delimiters
    By goji in forum Excel General
    Replies: 3
    Last Post: 09-21-2009, 02:34 PM
  7. using multiple delimiters at the same time
    By smitha.dronavalli@gmail.com in forum Excel General
    Replies: 2
    Last Post: 08-01-2006, 08:50 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