+ Reply to Thread
Results 1 to 4 of 4

Text date to text box and manipulation thereof

  1. #1
    Registered User
    Join Date
    03-03-2016
    Location
    London, England
    MS-Off Ver
    2007
    Posts
    14

    Text date to text box and manipulation thereof

    Hello everyone. I'm stuck again.

    Attached is a vastly boiled down version of something I'm creating for work.
    There is a simple userform that allows you to select a staff number in the combobox and it will return the relevant "Net Hrs Bal" from column F. This bit works(ish), however the dates are stored as text (they're imported from another system that way) and ideally I'd need them to be treated as [h]:mm format so I can maipulate them with calculations. For example, textbox2 in the attached should divide that figure by 2, but I get a "Run-time error 13 - Type mismatch".

    Any bright sparks out there able to assist me with this?

    Thanks in advance.
    Attached Files Attached Files

  2. #2
    Forum Expert
    Join Date
    08-16-2015
    Location
    Antwerpen, Belgium
    MS-Off Ver
    2007-2016
    Posts
    2,380

    Re: Text date to text box and manipulation thereof

    See if this give desired result

    Please Login or Register  to view this content.
    Kind regards
    Leo
    Attached Files Attached Files

  3. #3
    Forum Expert Tinbendr's Avatar
    Join Date
    06-26-2012
    Location
    USA
    MS-Off Ver
    Office 2010
    Posts
    2,125

    Re: Text date to text box and manipulation thereof

    As you surmised, you'll have to separate the parts around the colon.

    How about?
    Please Login or Register  to view this content.
    David
    (*) Reputation points appreciated.

  4. #4
    Forum Expert
    Join Date
    08-16-2015
    Location
    Antwerpen, Belgium
    MS-Off Ver
    2007-2016
    Posts
    2,380

    Re: Text date to text box and manipulation thereof

    @ David

    this way minutes end as hours

    Kind regards
    Leo

+ 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. Text Manipulation Help
    By bbroussard in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 07-03-2014, 02:04 PM
  2. Text Manipulation
    By IanNicholls in forum Excel General
    Replies: 3
    Last Post: 07-19-2012, 11:24 AM
  3. Text manipulation
    By pete777 in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 02-27-2007, 12:17 PM
  4. Text Manipulation
    By sanjimmy in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 01-24-2007, 05:18 PM
  5. [SOLVED] Text manipulation
    By paulinoluciano in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 04-17-2006, 08:30 PM
  6. [SOLVED] Text Manipulation from PDF
    By Thorrrr in forum Excel General
    Replies: 4
    Last Post: 04-16-2006, 09:51 AM
  7. [SOLVED] Date manipulation within text entries
    By David in forum Excel Programming / VBA / Macros
    Replies: 22
    Last Post: 03-19-2005, 05:06 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