+ Reply to Thread
Results 1 to 1 of 1

multiple string dates in cell, to array, and manipulate single elements

  1. #1
    Registered User
    Join Date
    09-18-2013
    Location
    brisbane, Australia
    MS-Off Ver
    Excel 2003
    Posts
    2

    multiple string dates in cell, to array, and manipulate single elements

    Excel 2003 SP3

    We use excel to record detail about rehabilitation cases. Related to TI (Totally Incapacitated) a client (record) can have more than one instance for TI.

    The start and end dates are entered into a single cell with ALT+Enter to get a new line in cell.

    Start date End date
    14/09/2011 14/12/2011
    06/12/2011 09/12/2011
    09/02/2012 10/02/2012
    29/02/2012 27/03/2012
    20/06/2012 20/06/2012

    I have a working solution in the attachment, which works reliably well.

    At the time I had to use SPLIT to capture the cell string with Chr(10) and loaded to a variant variable, and then pushed the first variant variable contents into a second variant variable. I was then able to manipulate subsets of the original string to meet my need.

    My question; is there a more succinct method to achieve the same result?

    Please Login or Register  to view this content.
    PS: the code is for all who find it useful.
    Last edited by willara23; 09-18-2013 at 10:10 PM. Reason: revised code check start date relative to end date with datevalue

+ 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. Resources for Using VBA to Manipulate Silverlight Elements like HTML Elements
    By linear_db in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 04-16-2013, 04:43 PM
  2. DIMming / setting multiple ranges by iterating over an array of string elements
    By brownfox in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 04-12-2013, 08:14 PM
  3. How to delete block of elements from stored VBA array string
    By nuttyengineer in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 03-27-2013, 07:06 PM
  4. [SOLVED] Populate Listbox with all rows of a dynamic array where elements of a single array match.
    By Tayque_J_Holmes in forum Excel Programming / VBA / Macros
    Replies: 21
    Last Post: 08-07-2012, 04:54 AM
  5. Show Array String in Single Cell
    By frolicols in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 07-16-2010, 10:10 AM

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