Results 1 to 6 of 6

Vba to Return the Term located between first two Dashes

Threaded View

jordan2322 Vba to Return the Term... 08-13-2012, 02:02 AM
mmmarks Re: locate Term located... 08-13-2012, 02:22 AM
jordan2322 Re: locate Term located... 08-13-2012, 03:33 AM
jordan2322 Re: locate Term located... 08-13-2012, 08:55 PM
mmmarks Re: Vba to Return the Term... 08-14-2012, 12:23 AM
mikerickson Re: Vba to Return the Term... 08-14-2012, 12:32 AM
  1. #1
    Forum Contributor
    Join Date
    11-16-2011
    Location
    Australia
    MS-Off Ver
    Excel 2010
    Posts
    405

    Question Vba to Return the Term located between first two Dashes

    Hi Everyone,

    I'm using the following code to add cell values to a worksheet based on the value from another.

    My problem is that I do not wish for it to grab the entire cell value. I only want it to take the value found between the first dash to the second dash.

    I would also like to be able to use this code in other situations. i.e. take the value found from the second dash to the third. So having a selection for me to assign the number of dashes would be great!

                Cells(j, 1).Value = Sheets(WS).Cells(2, Col).Value      'Date
                Cells(j, 3).Value = Sheets(WS).Cells(Rw - 4, Col).Value    'Project
    A typical value that would be found in cell (j,3) is Microsoft-Jordan-Excel Forum

    Having a way to identify just "Jordan" from the term above would be great!

    Thanks Heaps in advance
    Last edited by jordan2322; 08-13-2012 at 09:45 PM.

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